Discussion:
[Ecb-list] Speedbar staying with buffers
Steffen Glückselig
2004-03-12 14:32:03 UTC
Permalink
Hello,

I am new to emacs (and, of course ecb). I set up ecb to display speedbar.
I would like to use it for quick access to the buffers list. Alas when I
right-click on a buffer listed in the speedbar the view switches to
directory (the buffer get's displayed correctly in the editor-view). I
would like speedbar to stay in the buffers-view. How do I set this up?


Thanks for your help
Steffen
Fabian Braennstroem
2004-03-15 06:36:16 UTC
Permalink
Post by Steffen Glückselig
Hello,
I am new to emacs (and, of course ecb). I set up ecb to display speedbar.
I would like to use it for quick access to the buffers list. Alas when I
right-click on a buffer listed in the speedbar the view switches to
directory (the buffer get's displayed correctly in the editor-view). I
would like speedbar to stay in the buffers-view. How do I set this up?
Mine works fine. The only problem I have is that it switches to directory-view
when I start emacs new.

Greetings!
--
Fabian Braennstroem
Duesseldorf/Berlin
Berndl, Klaus
2004-03-15 07:16:04 UTC
Permalink
Post by Fabian Braennstroem
Mine works fine. The only problem I have is that it switches to
directory-view when I start emacs new.
You can set the default mode of speedbar by adding to the following to your .emacs:

(speedbar-change-initial-expansion-list "buffers")

The current stable CVS-snapshot at the ECB-webiste contains a new hook-variable, which allows e.g. to set the default mode only for the integrated speedbar but nor in general for each speedbar. With the following code this can be achieved - but needs the latest CVS-snapshot of ECB:

(require 'ecb)
(add-hook 'ecb-speedbar-before-activate-hook
(lambda ()
(speedbar-change-initial-expansion-list "buffers")))

This switches the integrated speedbar in the buffers mode per default

Greetings!
Klaus
Steffen Glückselig
2004-03-12 14:32:03 UTC
Permalink
Hello,

I am new to emacs (and, of course ecb). I set up ecb to display speedbar.
I would like to use it for quick access to the buffers list. Alas when I
right-click on a buffer listed in the speedbar the view switches to
directory (the buffer get's displayed correctly in the editor-view). I
would like speedbar to stay in the buffers-view. How do I set this up?


Thanks for your help
Steffen
Fabian Braennstroem
2004-03-15 06:36:16 UTC
Permalink
Post by Steffen Glückselig
Hello,
I am new to emacs (and, of course ecb). I set up ecb to display speedbar.
I would like to use it for quick access to the buffers list. Alas when I
right-click on a buffer listed in the speedbar the view switches to
directory (the buffer get's displayed correctly in the editor-view). I
would like speedbar to stay in the buffers-view. How do I set this up?
Mine works fine. The only problem I have is that it switches to directory-view
when I start emacs new.

Greetings!
--
Fabian Braennstroem
Duesseldorf/Berlin
Berndl, Klaus
2004-03-15 07:16:04 UTC
Permalink
Post by Fabian Braennstroem
Mine works fine. The only problem I have is that it switches to
directory-view when I start emacs new.
You can set the default mode of speedbar by adding to the following to your .emacs:

(speedbar-change-initial-expansion-list "buffers")

The current stable CVS-snapshot at the ECB-webiste contains a new hook-variable, which allows e.g. to set the default mode only for the integrated speedbar but nor in general for each speedbar. With the following code this can be achieved - but needs the latest CVS-snapshot of ECB:

(require 'ecb)
(add-hook 'ecb-speedbar-before-activate-hook
(lambda ()
(speedbar-change-initial-expansion-list "buffers")))

This switches the integrated speedbar in the buffers mode per default

Greetings!
Klaus

Loading...