emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Org Writer's room


From: David Engster
Subject: Re: [O] Org Writer's room
Date: Thu, 06 Dec 2012 13:07:58 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux)

Matt Price writes:
> (1) do you know if it's possible to get the speedbar buffer in a
> window instead of a frame?

I initially thought that would be easy. Turns out it isn't. ECB uses all
kinds of 'defadvice' to achieve that.

There's a package sr-speedbar at

http://www.emacswiki.org/SrSpeedbar

but I don't know if that one's still working.

> (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?

I tried with 'emacs -Q' and it "works for me". Make sure you do the
above *before* firing up speedbar.

> A speedbar buffer in the same frame that shows only headings of the
> current file would be fantastic...

Instead of bending Speedbar to your will, maybe it's just easier if
you'd look at other solutions. As I've written, Speedbar simply resorts
to 'imenu' to get the tags. Calling 'imenu-add-to-menubar' will let you
generate a menu entry for the headings; that should also work with every
org file. Maybe there's a little package out there putting the imenu
headings in a buffer; it can't be very hard to do. Just take a look

http://emacswiki.org/emacs/ImenuMode

as a starting point.

-David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]