Questions tagged [imenu]
41 questions
7
votes
3 answers
All org subheadings in imenu?
imenu can be used in org-mode to quickly jump to a heading. It first prompts for the 1st level heading, and then asks for the 2nd level heading and so on untill the selected heading has no subheading and we are then taken to that last selected…

Joon Kwon
- 363
- 1
- 6
4
votes
1 answer
My imenu-entries get double listed. How could I correct that?
With the PHP-mode that's shipped with Emacs, suppose I have the following PHP function:
public function foo()
{
print "bar";
}
Imenu will list the foo in all methods and public methods.
Other packages like Helm and Ido use the same Imenu,…

ReneFroger
- 3,855
- 22
- 63
3
votes
2 answers
How can I run imenu in all project files?
Is there any package which will allow to run the imenu in all project files of a current mode?
More specifically I have a Go project defined by projectile and I would like to search for a symbol in the whole project.
I know about imenu-anywhere -…

Robert Zaremba
- 211
- 1
- 6
3
votes
1 answer
next/prev-imenu-item function
I would like to have a single shortcut to jump to the next item on the imenu of current buffer. E.g., if the current buffer is in org mode, next-imenu-item = org-next-visible-heading.
Anyone did that before?

AhLeung
- 1,083
- 5
- 14
3
votes
1 answer
imenu in ess-mode: recognize assignment with "="
Is there a way to configure the imenu integration in ESS-mode so that it recognizes assignment by the equal sign "=", not only by arrow "<-"?
I'm switching between R and python so I've switched to "=" to decrease the cognitive load, but this way I…

user673592
- 839
- 7
- 17
3
votes
1 answer
How can I configure imenu to ignore comments?
To configure imenu in my major mode, I need to set imenu-generic-expression to have regexps for functions.
However, this is incorrectly detects things inside comments and strings that look like functions.
How do I prevent this? imenu isn't confused…

Wilfred Hughes
- 6,890
- 2
- 29
- 59
2
votes
3 answers
Auctex imenu add frames to list?
I use imenu in auctex. For beamer slides, it only offers me the \section-commands as entry points. How can I teach imenu to also offer all frames? (Which is an environment: \begin{frame}....\end{frame}?

Jörg Volbers
- 33
- 3
2
votes
1 answer
menu navigation in source file
Is it available a mode that, entering a source file, scans it to find all the function, class and methods declarations and eventually install a menu that enables jumping around in the source file?
I used to use fume-mode (?) where fume is for…

gboffi
- 594
- 2
- 19
2
votes
1 answer
How to make helm-mark-ring/helm-imenu follow current candidate
When I use helm-mark-ring or helm-imenu, I would like to jump to the current candidate automatically in the other buffer while keeping the helm session (i.e., similar to helm-swoop).
I tried the following codes mentioned on this thread, but didn't…

AhLeung
- 1,083
- 5
- 14
2
votes
0 answers
How to remove unwanted candidates from helm-semantic-or-imenu?
Helm has inbuilt function helm-semantic-or-imenu. When this function is called, it shows all candidates including variables, dependencies e.t.c.
I mostly use it only for functions and classes. I want to remove all other candidates and include only…

Chillar Anand
- 4,042
- 1
- 23
- 52
2
votes
1 answer
How can I make imenu work with complex LaTeX documents?
I discovered a short time ago that M-x imenu plays nice with LaTeX documents – mostly. With a master/slave document setup (one file inputs another), imenu will not pick up on the structural elements in the child documents.
Similarly, running M-x…

Sean Allred
- 6,861
- 16
- 85
1
vote
0 answers
How to make imenu jump/preview new location when switching up/down like swiper or like fzf in vim?
How can I make imenu (with ivy wrapper) act like swiper, that mean auto switch to location when I use arrow key( or ivy-previous/next-line function) and if I exit it will come back to current location?

Kidman
- 31
- 2
1
vote
2 answers
Why is my Imenu not showing function and class definitions?
I feel like something is wrong with my Imenu setup, because here is what it shows on a simple Python script:
It seems to show some variable definitions, but doesn't have separate entries for the function definitions (the def ... lines), or the…

space_voyager
- 709
- 5
- 19
1
vote
1 answer
How to see brief location in the code in C/C++ mode
While editing a long C++ file, I use rtags to jump around. It would be very handy for me to know where I am in terms of where the cursor is relative to the classes-functions. For example, it would be great if I could have something similar to imenu…

foki
- 886
- 8
- 22
1
vote
3 answers
imenu to copy the target instead of jumping to it?
Is it possible to use imenu (or another package) to copy the target (specified by a regex) rather than jumping to it?
This is an effort for tackling the question: How to list or autocomplete pandoc-crossref citations in an org-mode buffer?
I'd like…

tinlyx
- 1,276
- 1
- 12
- 27