-
Notifications
You must be signed in to change notification settings - Fork 102
Eclipse Outline
To get the outline for the current file, like the feature in eclipse, you must setup either semantic or imenu.
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.
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
Spacemacs users are able to do SPC s l
to call spacemacs/jump-in-buffer
. This will call either semantic
or imenu
, which depends on whether semantic
layer is on or off.