[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Best way to get hang of an elisp file?
From: |
Drew Adams |
Subject: |
RE: Best way to get hang of an elisp file? |
Date: |
Fri, 18 Oct 2013 19:22:27 -0700 (PDT) |
> > I'm curious whether there exists something like "outline mode",
> > hiding everything but the signature of a function and its docstring
> > etc.
>
> 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...
Good reminder. `outline-minor-mode' and `reveal-mode' are oldies but
goodies.
Not a complete answer here, though, since `o-m-mode' hides also the
doc strings. (And even part of the signature, if it ends on another
line.)