SuDo

Micro

Searching Specific File Types in Emacs

If you’re using Emacs with consult-ripgrep (M-x consult-ripgrep), you might want to search only within certain file types—say, just .scala files in a project.

M-x consult-ripgrep RET -- -g '*.scala'
  • The -- separates ripgrep (rg) options from the search term.
  • -g '*.scala' tells rg to search only in .scala files.
  • You can add multiple -g flags for different file types:
M-x consult-ripgrep RET -- -g '*.scala' -g '*.sbt'

Stopping by Woods

These lines are from Stopping by Woods on a Snowy Evening by Robert Frost, written in 1922 (published in 1923) in his New Hampshire volume.

The poem highlights the importance of enjoying the beauty and peace of nature while also fulfilling responsibilities and obligations, without becoming entirely lost in that joy.

The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep.