On Thu, Dec 6, 2012 at 5:51 AM, David Engster <d...@randomsample.de> wrote: > Rainer M. Krug writes: >> On 06/12/12 09:36, Jambunathan K wrote: >>> On the left is the navbar. - You can quickly navigate to any >>> heading, a table or a captioned >>> figure. >> >> Couldn't the navbar from emacs be used for that? I haven't used it in >> a long time, but in ecb >> (Emacs Code Browswer) it is used for this - see Screenshots on >> http://ecb.sourceforge.net/ for how >> it looks there. > > Speedbar can use 'imenu' to get a list of tags, and org supports > 'imenu', so it pretty much works right away, also without ECB. Just do > > (require 'speedbar) > (speedbar-add-supported-extension ".org") > > and fire up speedbar with > > M-x speedbar > > You can now be able to click on org files and you should see the section > headings. It should also be possible to generate a speedbar frame or > buffer which only shows the tags of the current file, like ECB does, but > I would have to look that up if that's important.
that sounds cool. I hadn't really used speedbar before, but now I can see the attraction. (1) do you know if it's possible to get the speedbar buffer in a window instead of a frame? (2) org headings are not showing up for me with those two lines of code. Evaluating (speedbar-add-supported-extension ".org") gives "\\(\\(\\.\\(org\\|[ch]\\(\\+\\+\\|pp\\|c\\|h\\|xx\\)?\\|tex\\(i\\(nfo\\)?\\)?\\|el\\|emacs\\|l\\|lsp\\|p\\|java\\|js\\|f\\(90\\|77\\|or\\)?\\|ad[abs]\\|p[lm]\\|tcl\\|m\\|scm\\|pm\\|py\\|g\\|s?html\\|ma?k\\)\\)\\|\\([Mm]akefile\\(\\.in\\)?\\)\\)$" but trying to click on the "+" symbol in the speedbar frame next to an org file gives only: Sorry, no support for a file of that extension Is it possible I need something else to make the extension work? A speedbar buffer in the same frame that shows only headings of the current file would be fantastic... > > -David > >