Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [imenu]

The tag has no usage guidance.

1
vote
1answer
29 views

How to set imenu to a list of errors in compilation mode

I would like to use helm-imenu to see and navigate on a list of errors/warnings in compilation buffer. How can I do that? E.g., by setting imenu-generic-expression to some value?
0
votes
1answer
104 views

Can imenu be made to rescan every time?

Is it possible to make imenu refresh on every access, and to remove the *Rescan* item from the menu?
0
votes
1answer
41 views

imenu list automatically toggled in new frame

I tried to run imenu-list-show in hook which is called after frame creation but it doesnt work as expected. It toggled the imenu-list in new frame but my keyboard arrows become unresponsive. Code is: ...
2
votes
2answers
104 views

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}...
2
votes
1answer
174 views

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 ...
1
vote
0answers
41 views

Listing Variables using helm-imenu

I'm using helm-imenu to list Classes and Functions. How can I add enable it to list variables also?
1
vote
1answer
147 views

Order of items in imenu

When I create an imenu with the help of the lisp snippet (defun my-index-function () (message "Running `my-index-function'.") '(("1" . 1) ("1.1" ("1.1.1" . 2) ("1.1.2" . 3) ("1.1.3" . 4)) ("1.2" ....
1
vote
1answer
161 views

Imenu is missing multi-line golang function signatures

When a golang function signature is split with a linebreak it does not appear in imenu nor helm-imenu. I would like to jump between functions using helm-imenu, but this issue is in my way. Not hard-...
1
vote
1answer
58 views

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 ...
1
vote
1answer
117 views

How to add Beamer `\frametitle` to `imenu`?

I know that there is RefTeX with its TOC, and I know how to include \frametitle there (see here). Nevertheless, I would like to see \frametitle also appear in imenu. What would be the minimal way to ...
1
vote
1answer
61 views

Does imenu sopport sub-indexes?

I'm trying to add support for imenu in a major mode I currently writing. Reading documentation I've found that its API looks simple and all I want to do is to write a function and bind it to imenu-...
1
vote
1answer
422 views

imenu doesn't work on indented C++ code

While imenu works very well in most environments, I am having issues when using it in C++ files where functions are not defined flush left. (Update:) Steps to reproduce the issue (thanks to Drew's ...
2
votes
1answer
159 views

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 ...
2
votes
0answers
44 views

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 ...
1
vote
3answers
757 views

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 ...
4
votes
1answer
101 views

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 ...
0
votes
0answers
24 views

Is it possible to include text in the extracted menus in `helm-imenu`?

I try to use helm-imenu to construct a custom menu of headings, where the menu items are slightly different to what is shown in the headings. Say I have an ordinary org file with some headings * ...
0
votes
2answers
345 views

Use imenu to index init.el

To jump around in my init.el I used to do (setq imenu-generic-expression '((nil ";; \\[ \\(.*\\)" 1))) and then put markers in the file like so ;; [ my marker here To call imenu i have a handy ...
2
votes
1answer
63 views

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 ...
1
vote
0answers
108 views

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 ...
1
vote
1answer
300 views

Problem in writing regular expression for imenu-generic-expression

I want to use imenu in matlab-mode in emacs. So I add something like (setq imenu-generic-expression '(("Function" "\\(function\\)[\n\t ]*\\[?[ ,_A-Za-z0-9]+\\]?[\n\t ]*=[\n\t ]*\\([_A-...
2
votes
1answer
138 views

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 ...
0
votes
1answer
253 views

Imenu Generic Regexp for CSS / LESS

I am trying to create a Regex for Imenu indexing for my CSS modes but I'm having trouble getting it exactly right as I'm no regular expression guru. Here's a snippet of LESS CSS I'm using (regexp-...
1
vote
0answers
141 views

Speedbar: Colored entries using imenu-generic-expression

I would like to search for certain doxygen like pattern in my files and then add corresponding entries to a speedbar for easy browsing. Some of these entries I want to have colored in red. I figured ...
1
vote
2answers
429 views

helm-semantic-imenu doesn't identify pointers and references in C++ code

With semantic-mode enabled and reading a C++ source file in cc-mode, running helm-semantic-or-imenu correctly shows all the classes, variables and functions defined in that file. However, all the ...