Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opening emacs without the scratch buffer when opening a file

Tags:

emacs

I've changed a setting in Emacs. Now, whenever I try to open a file from the command line, it opens a *scratch* buffer on top of the file. Is there a way to get rid of this? Or a way to reset my emacs startup settings?

like image 396
Nick Avatar asked Mar 10 '10 15:03

Nick


1 Answers

M-x customize-group
initialization

Then, on Initial Buffer Choice, you can select among:

  • Startup Screen
  • Directory
  • File
  • scratch buffer

Finally, click on save for future sessions.

You can also toggle it on/off. See if this can help.

(The other thing you probably want to do is to open just a single buffer at start-up. I can't remember by heart how this is done. I'll post an update if I find it out).

like image 70
Roberto Aloi Avatar answered Nov 12 '22 00:11

Roberto Aloi