all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>, help-gnu-emacs@gnu.org
Subject: RE: Best way to get hang of an elisp file?
Date: Fri, 18 Oct 2013 19:22:27 -0700 (PDT)	[thread overview]
Message-ID: <3f07e9a6-908b-4413-b171-d433e54f1dc4@default> (raw)
In-Reply-To: <jwvbo2mdp7p.fsf-monnier+gmane.emacs.help@gnu.org>

> > 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.)



  reply	other threads:[~2013-10-19  2:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-18 16:52 Best way to get hang of an elisp file? Marcin Borkowski
2013-10-18 17:22 ` Thorsten Jolitz
2013-10-18 21:42 ` Drew Adams
2013-10-19  1:32 ` Stefan Monnier
2013-10-19  2:22   ` Drew Adams [this message]
2013-11-15 14:35   ` Sean Sieger
2013-11-16 16:06     ` Stefan Monnier
2013-11-18 20:40       ` Sean Sieger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3f07e9a6-908b-4413-b171-d433e54f1dc4@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.