* How to increase the depth of the scan in imenu and speecbar?
@ 2015-03-27 12:38 Rainer M Krug
2015-03-27 13:12 ` [Solved]: " Rainer M Krug
2015-03-27 14:12 ` Drew Adams
0 siblings, 2 replies; 5+ messages in thread
From: Rainer M Krug @ 2015-03-27 12:38 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 393 bytes --]
Hi
I started using imenu and speedbar, anr=d I like them, but I would like
to have not only a second level, but up to e.g. 6th level. Where can I
set these options? I did not find anything.
I am particularly talking about orgmode files and their headers, which
are only shown up to level 2.
Cheers,
Rainer
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Solved]: How to increase the depth of the scan in imenu and speecbar?
2015-03-27 12:38 How to increase the depth of the scan in imenu and speecbar? Rainer M Krug
@ 2015-03-27 13:12 ` Rainer M Krug
2015-03-27 14:12 ` Drew Adams
1 sibling, 0 replies; 5+ messages in thread
From: Rainer M Krug @ 2015-03-27 13:12 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 570 bytes --]
Rainer M Krug <Rainer@krugs.de> writes:
> Hi
>
> I started using imenu and speedbar, anr=d I like them, but I would like
> to have not only a second level, but up to e.g. 6th level. Where can I
> set these options? I did not find anything.
>
> I am particularly talking about orgmode files and their headers, which
> are only shown up to level 2.
Found it: for org files this is defined in org0imenu-depth:
(setq org-imenu-depth 6)
Cheers,
Rainer
>
> Cheers,
>
> Rainer
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: How to increase the depth of the scan in imenu and speecbar?
2015-03-27 12:38 How to increase the depth of the scan in imenu and speecbar? Rainer M Krug
2015-03-27 13:12 ` [Solved]: " Rainer M Krug
@ 2015-03-27 14:12 ` Drew Adams
2015-03-27 14:21 ` Drew Adams
1 sibling, 1 reply; 5+ messages in thread
From: Drew Adams @ 2015-03-27 14:12 UTC (permalink / raw)
To: Rainer M Krug, help-gnu-emacs
> I started using imenu and speedbar, anr=d I like them, but I would like
> to have not only a second level, but up to e.g. 6th level. Where can I
> set these options? I did not find anything.
>
> I am particularly talking about orgmode files and their headers, which
> are only shown up to level 2.
See `C-h v imenu-generic-expression'. I don't think you can have more
than two levels. Each element of the list must be a list of the form
(MENU-TITLE REGEXP INDEX [FUNCTION] [ARGUMENTS...]).
You can at least have more submenus (i.e. level 2), to break things
down more. IOW, instead of trying to have, say, this:
MyMenu
Variables
Options
You can just use this:
MyMenu
Options
Non-Option Variables
Remember that the regexps are tried in order. So putting Options
(every option is a variable) before Non-Option Variables lets
you use a more general regexp for the latter.
That's at least better than just MyMenu > Variables, i.e., it at
least lets you separate the two kinds of variables.
Taking a look at library `imenu+.el' might help in this regard.
http://www.emacswiki.org/emacs/download/imenu%2b.el
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-03-27 14:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-27 12:38 How to increase the depth of the scan in imenu and speecbar? Rainer M Krug
2015-03-27 13:12 ` [Solved]: " Rainer M Krug
2015-03-27 14:12 ` Drew Adams
2015-03-27 14:21 ` Drew Adams
2015-03-27 14:55 ` Rainer M Krug
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).