From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: porting crufty old init.el to package management Date: Mon, 24 Mar 2014 09:25:31 +0100 Message-ID: <87txaovw90.fsf@gmail.com> References: <8738i8pjux.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395649481 3622 80.91.229.3 (24 Mar 2014 08:24:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Mar 2014 08:24:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 24 09:24:52 2014 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 1WS0Bf-0007f5-HJ for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Mar 2014 09:24:51 +0100 Original-Received: from localhost ([::1]:34939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS0Bf-0007Bj-3Z for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Mar 2014 04:24:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS0BP-0007Ba-Fd for help-gnu-emacs@gnu.org; Mon, 24 Mar 2014 04:24:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WS0BK-0005Qr-JG for help-gnu-emacs@gnu.org; Mon, 24 Mar 2014 04:24:35 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:49360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS0BK-0005Qa-95 for help-gnu-emacs@gnu.org; Mon, 24 Mar 2014 04:24:30 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WS0BH-0007Eu-7U for help-gnu-emacs@gnu.org; Mon, 24 Mar 2014 09:24:27 +0100 Original-Received: from e178060203.adsl.alicedsl.de ([85.178.60.203]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Mar 2014 09:24:27 +0100 Original-Received: from tjolitz by e178060203.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Mar 2014 09:24:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 124 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178060203.adsl.alicedsl.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:VK95E+IzVmJ0gLorAUZ8e6d27aA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:96709 Archived-At: Tom Roche writes: > I'm wondering, would anyone care to recommend especially worthy docs > for this process (guides, howto's, tutorials)? esp how best to > accommodate snippets of elisp (gists?) If you think of your init file more as '(comment)text with code', Org-Babel and the associated starter-kit (http://eschulte.github.io/emacs-starter-kit/) are definitely worth a try. OTOH, if you think of your init file more as 'code with (comment)text', then using outshine.el might be more comfortable (http://orgmode.org/worg/org-tutorials/org-outside-org.html). Here is how I currently structure my init.el with outshine headlines (that allow for much of Org-mode's navigation, visibility cycling and structure editing functionality): ,----------------------------------------------------- | 98 matches for "^;; \*\*?\*?\*? " in buffer: init.el | 1:;; * init.el --- Emacs Init File (TJ) | 5:;; * Begin Startup | 16:;; * General Configurations | 20:;; ** Coding System | 30:;; ** Screen Colors | 50:;; ** Global Settings | 80:;; ** Global Keys | 91:;; ** Define Aliases | 114:;; ** Load Path | 116:;; *** Load-Path Enhancement | 150:;; *** Library Search | 201:;; ** Package Manager | 207:;; * Helper functions | 211:;; ** Improved Require | 236:;; ** Idle Require | 262:;; ** Fast Temporary Buffers | 272:;; ** Elisp Symbols | 331:;; ** Files and Directories | 357:;; ** Window Split | 408:;; ** Scratch Buffer | 419:;; ** Truncate Lines | 431:;; ** Recentf with Ido | 453:;; * Major Modes | 457:;; ** Org | 461:;; *** General | 463:;; **** Configuration | 508:;; **** Functions | 545:;; *** Hyperlinks | 547:;; **** Configuration | 556:;; *** Properties and Columns | 558:;; **** Configuration | 568:;; *** Exporting | 570:;; **** Configuration | 577:;; *** Timestamps | 579:;; **** Configuration | 584:;; **** Functions | 607:;; *** Tags | 609:;; **** Configuration | 639:;; *** Clocking | 641:;; **** Configuration | 703:;; **** Functions | 833:;; *** Capturing | 835:;; **** Configuration | 861:;; *** Projects | 863:;; **** Functions | 1062:;; *** Archiving | 1064:;; **** Configuration | 1069:;; **** Functions | 1109:;; *** Agenda | 1111:;; **** Configuration | 1352:;; **** Functions | 1537:;; *** Refile | 1539:;; **** Configuration | 1577:;; **** Functions | 1585:;; *** Org-Babel | 1587:;; **** Configuration | 1651:;; **** Functions | 1658:;; *** Skeletons | 1660:;; **** Abbreviations | 1676:;; **** Definitions | 1721:;; *** Keybindings | 1729:;; ** LaTeX | 1733:;; *** Configuration | 1821:;; *** Functions | 1823:;; ** Calendar | 1831:;; ** PicoLisp | 1865:;; ** Slime | 1912:;; ** Scala | 1919:;; ** Dired | 1964:;; ** IRC | 1980:;; ** Message | 1986:;; ** Magit | 1993:;; ** W3M | 1997:;; *** Configurations | 2090:;; *** Functions | 2097:;; ** Ediff | 2151:;; ** Occur | 2153:;; *** Configurations | 2165:;; *** Functions | 2193:;; * Minor Modes | 2197:;; ** Outline | 2221:;; ** Ido | 2259:;; ** Smex | 2278:;; ** S | 2284:;; ** Undo Tree Mode | 2294:;; ** Rebox2 | 2307:;; ** Rainbow Delimiters | 2314:;; ** Auto Pair | 2320:;; ** Eldoc | 2328:;; ** Logito | 2335:;; ** Openwith | 2352:;; ** Workgroups | 2362:;; ** Switch Windows | 2368:;; ** Window Numbering | 2375:;; ** Winner Mode | 2386:;; ** Nuke'n Eval | 2398:;; * End Startup | 2412:;; * Custom Set Variables/Fonts `----------------------------------------------------- -- cheers, Thorsten