I've always captured any quick notes in the scratch buffer, and used persistent-scratch to save the contents in case my Emacs shuts down. But TIL Emacs has remember.el, which provides
M-x remember to quickly capture notes, and saves it to a file on your disk (~/emacs.d/notes by default). You can open the remember notes file with M-x remember-notes to see all your captured notes (and even set it as the initial buffer on startup, similar to how many people set up scratch). No need to use a third-party package for this functionality.Here's my configuration, inspired by Jack Baty
(setq
;; Open the remember notes directory on Emacs startup
initial-buffer-choice #'remember-notes
;; Open the capture buffer in a new frame
remember-in-new-frame t
;; No annotations to the notes. By default it appends the current buffer file name.
remember-annotation-functions nil
;; I like to add a plaintext time string to my notes.
remember-text-format-function
(lambda (text) (concat
(format-time-string "[%a %b %d %H:%M]")
"\n"
text))
)
There are even functions to add the current buffer, region, or clipboard to the remember buffer directly. Moreover, if your style is to capture each note in its own file, you can even do that, and store each note as a separate file in
remember-data-directory (~/remember by default).This mode was written by John Wiegley, and once maintained by Sacha Chua whom many of you may be familiar with.
https://redd.it/1ws28im
@r_emacs