1

I have the fllowing lines in my .emacs:

(add-hook 'reftex-load-hook 'imenu-add-menubar-index)
(add-hook 'reftex-mode-hook 'imenu-add-menubar-index)
(global-set-key [down-mouse-3] 'imenu)

It produces a Reftex context menu whenever I press the mouse right button on a document. The problem is that the menu contains all the sections, subsection and subsubsections in a linear fashion.

I'd like this menu to show the sections in the document only and when I move the cursor on one of the sections, its subsections show up in a new menu and so on. (Similar to the menu in Orgmod.) This would be useful for large documents.

  • can C-C = help? – Name Dec 14 '14 at 12:37
  • It says C-c = is undefined. – Reza Dec 14 '14 at 13:33
  • make sure to enable reftex-mode (M-x reftex-mode). – Name Dec 14 '14 at 13:43
  • Thank you. I modified my question to make the point clear. – Reza Dec 14 '14 at 13:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.