Skip to content
Daniel Gopar edited this page Aug 12, 2015 · 3 revisions

To get the outline for the current file, like the feature in eclipse, you must setup either semantic or imenu.

Semantic

If you are going to choose semantic to perform the outline mode, then it's best to add a hook to java-mode

(add-hook 'java-mode-hook 'semantic-mode)

Now you are able to call semantic-complete-jump-local to jump to definitions within the file (By default, it's bind to C-c , j. Also if you are using helm you are able to call helm-semantic for a nicer presentation.

Note: For spacemacs users you are able to do SPC s l to call spacemacs/jump-in-buffer. This will provide the same functionality.

Imenu

To use imenu you can simply call it from your buffer M-x imenu. If you are using helm you are able to call helm-imenu for a nicer presentation.

Note: If you want a dedicated buffer for displaying the definitions using imenu, then it may be worth while to check out imenu-list

Clone this wiki locally