[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Best way to get hang of an elisp file?
From: |
Stefan Monnier |
Subject: |
Re: Best way to get hang of an elisp file? |
Date: |
Fri, 18 Oct 2013 21:32:11 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> they /do/ instead of how they are implemented, I'm curious whether
> there exists something like "outline mode", hiding everything but the
Yes, it's called outline-minor-mode ;-)
For Elisp, I additionally use:
(add-hook 'outline-minor-mode-hook
(lambda ()
(when (and outline-minor-mode (derived-mode-p 'emacs-lisp-mode))
(hide-sublevels 1000))))
which starts outline-minor-mode by hiding all the bodies of functions.
I also use `reveal-mode' which automatically unhides the bodies when you
try to move the cursor into them (so you don't need to remember the key
sequences to use for opening/closing elements).
Stefan