TGViewer
/r/emacs /r/emacs @r_emacs · 79 subscribers
Post #28607 4
TIL about Remember mode - built-in persistent-scratch

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
GitHub GitHub - Fanael/persistent-scratch: Preserve the scratch buffer across Emacs sessions Preserve the scratch buffer across Emacs sessions. Contribute to Fanael/persistent-scratch development by creating an account on GitHub.
More from @r_emacs
  1. Sep 28, 2026Interesting/Underrated/Unused Vanilla Emacs Features There is a lot of stuff packed into t…
  2. Sep 28, 2026org-publish issues with recent updates I've been using org-publish along with this package…
  3. Sep 28, 2026llm package support for jev / laya-style quick decisions https://redd.it/1ws60sw @r_emacs
  4. Sep 28, 2026Weirdest bug ever: Can't move cursor with the mouse on Windows It worked normally yesterda…
  5. Sep 28, 2026Need to override Elisp auto indentation by setting it to a fixed number or spaces regardle…
  6. Sep 27, 2026Switching from helix to emacs Hi, I’ve been using helix for a few years for all of my edit…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →