Can't set Emacs Speedbar buffer display mode

2019-05-10 22:42发布

I often work with differents active buffer on emacs like :

  • source files
  • SQL buffer
  • shell buffer

I try to get speedbar always display buffer mode but I can't find any option that can load this display when emacs is started (default is file mode), and keep it during all session.

I also tried ecb history window that can display opened/recently closed edit buffers but there's no way to make it display specials buffers like SQL or shell.

How can I customize emacs to get this behavior?

1条回答
何必那么认真
2楼-- · 2019-05-10 23:23

I know this question is really old, but I'm going to answer it for anyone searching out there. I did this with a mode hook:

;; Start Sr-Speedbar in buffer mode by default
(add-hook 'speedbar-mode-hook
          (lambda ()
            (speedbar-change-initial-expansion-list "quick buffers")))
查看更多
登录 后发表回答