Can't set Emacs Speedbar buffer display mode

半腔热情 提交于 2019-12-10 10:28:01

问题


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:


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")))


来源:https://stackoverflow.com/questions/20855836/cant-set-emacs-speedbar-buffer-display-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!