Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

speedbar - how to fix the base directory (not change as buffer switched)

After using speedbar for a while, I found it will change the base directory according to currently displayed buffer.

How do I disable it? I just want the speedbar do nothing while I am switching to another buffer.

like image 337
jilen Avatar asked Feb 25 '13 08:02

jilen


Video Answer


2 Answers

I don't think this behavior is possible in plain Speedbar (After looking at variables, functions and the customization window).

However, if you check out the SrSpeedbar package, I see an option: “sr-speedbar-refresh-turn-off”. Once called, it should disable refreshing; sticking to wherever it is at.

like image 170
PascalVKooten Avatar answered Oct 20 '22 01:10

PascalVKooten


This is possible. Add this to your .emacs file:

(set 'speedbar-update-flag nil)

You can also toggle updating with

M-x speedbar-toggle-updates
like image 8
bwroga Avatar answered Oct 20 '22 01:10

bwroga