Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find/set the scratch buffer location?

In my Aquamacs the scratch buffer has a file location where I can save random notes, and it's located in USERNAME/Library/Application Support/Aquamacs Emacs/scratch buffer

I'd like to sync this with my other emacsen, but I can't find where (or if) the scratch buffer for 'normal' Emacs is saved.

Edit Thanks, Slomojo. I ended up putting this in my .emacs and it works as hoped:

(setq initial-buffer-choice "~/Library/Application Support/Aquamacs Emacs/scratch buffer")

I think the Aquamacs philosophy of the *scratch buffer* is just different from that of 'normal' emacs.

like image 208
beardc Avatar asked Sep 06 '25 23:09

beardc


1 Answers

The normal *scratch* buffer in Emacs isn't a file, it's just a memory buffer.

Of course, you can save it to a file, or have your .emacs load an alternative to *scratch* from an actual file at startup.

like image 186
ocodo Avatar answered Sep 10 '25 00:09

ocodo