/elisp-slime-nav

Slime-style navigation of Emacs Lisp source with M-. & M-,

Primary LanguageEmacs Lisp

Melpa Status Melpa Stable Status Support me

Slime-style navigation for Emacs Lisp

Slime allows very convenient navigation to the symbol at point (using M-.), and the ability to pop back to previous marks (using M-,).

This plugin provides similar navigation for Emacs Lisp, supporting navigation to the definitions of variables, functions, libraries and faces.

Additionally, elisp-slime-nav provides a way to describe the symbol at point, whatever its type. As with slime-describe-symbol, this functionality is bound both to C-c C-d d and C-c C-d C-d by default.

Installation

Manual

Ensure elisp-slime-nav.el is in a directory on your load-path, and add the following to your ~/.emacs or ~/.emacs.d/init.el:

(require 'elisp-slime-nav)
(dolist (hook '(emacs-lisp-mode-hook ielm-mode-hook))
  (add-hook hook 'elisp-slime-nav-mode))

MELPA

If you're an Emacs 24 user or you have a recent version of package.el you can install elisp-slime-nav from the MELPA repository. The version of elisp-slime-nav there will always be up-to-date.

Enable elisp-slime-nav in emacs-lisp-mode and ielm by adding code such as the following to your emacs startup file:

(dolist (hook '(emacs-lisp-mode-hook ielm-mode-hook))
  (add-hook hook 'turn-on-elisp-slime-nav-mode))

About

Author: Steve Purcell

Homepage: https://github.com/purcell/elisp-slime-nav

This little library was extracted from the author's full Emacs configuration, which readers might find of interest.


Steve Purcell's blog // @sanityinc on Twitter