From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Best way to get hang of an elisp file? Date: Fri, 18 Oct 2013 19:22:27 -0700 (PDT) Message-ID: <3f07e9a6-908b-4413-b171-d433e54f1dc4@default> References: <20131018185232.2084581e@aga-netbook> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1382149376 3483 80.91.229.3 (19 Oct 2013 02:22:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Oct 2013 02:22:56 +0000 (UTC) To: Stefan Monnier , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 19 04:22:59 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VXMBu-0003Hw-MZ for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Oct 2013 04:22:58 +0200 Original-Received: from localhost ([::1]:60088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXMBt-00059h-JN for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Oct 2013 22:22:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXMBc-00057o-20 for help-gnu-emacs@gnu.org; Fri, 18 Oct 2013 22:22:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXMBT-0007UP-F7 for help-gnu-emacs@gnu.org; Fri, 18 Oct 2013 22:22:39 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:17280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXMBT-0007UI-7y for help-gnu-emacs@gnu.org; Fri, 18 Oct 2013 22:22:31 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r9J2MT26026908 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 19 Oct 2013 02:22:30 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r9J2MSdv001600 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 19 Oct 2013 02:22:29 GMT Original-Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r9J2MRLX013048; Sat, 19 Oct 2013 02:22:28 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94095 Archived-At: > > I'm curious whether there exists something like "outline mode", > > hiding everything but the signature of a function and its docstring > > etc. >=20 > 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.)