Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

start emacs sr-speedbar in buffers mode on loading

Tags:

emacs

elisp

I use sr-speedbar in emacs. On loading, it starts in file mode. I then manually change it to buffers mode. Since I almost always use buffers mode, I would prefer to start it in that. However, I cannot find any way after googling and wondering if someone with Lisp expertise has inputs on how to resolve this

like image 731
doon Avatar asked Dec 06 '25 21:12

doon


1 Answers

The variable speedbar-initial-expansion-list-name controls the initial view of speedbar. The default value is "files". The other two possibilities are "quick buffers" or "buffers" -- either of the following could be placed in the .emacs file after a (require 'speedbar) statement:

(setq speedbar-initial-expansion-list-name "quick buffers")

or

(setq speedbar-initial-expansion-list-name "buffers")
like image 164
lawlist Avatar answered Dec 09 '25 00:12

lawlist



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!