From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Using Org/babel for Emacs config files (was: OT: Learning ELISP) Date: Wed, 23 Jan 2013 15:40:35 +0100 Message-ID: <2013-01-23T15-20-19@devnull.Karl-Voit.at> References: <2013-01-21T12-04-57@devnull.Karl-Voit.at> Reply-To: news1142@Karl-Voit.at Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ty1VZ-0004Pf-Ue for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 09:41:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ty1VW-0001SY-9f for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 09:40:57 -0500 Received: from plane.gmane.org ([80.91.229.3]:42783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ty1VW-0001S6-2i for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 09:40:54 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ty1Vh-0007gd-NE for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 15:41:05 +0100 Received: from mail.michael-prokop.at ([88.198.6.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Jan 2013 15:41:05 +0100 Received: from news1142 by mail.michael-prokop.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Jan 2013 15:41:05 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi! * Jonathan Arkell wrote: > I am a huge advocate of using org files and literate programming in your > config files. Great. I am not completely convinced to convert my config to org/babel but I am not oppose either. Not sure, if there are that many advantages, that it is worth my effort, that's all. > A few reasons why: > - Makes it easy to logically group sections of your init and > configuration Well, this is also possible with pure elisp and comments. Folding is a different topic tough. > - Agenda tags search on your initialization file? Yes please! > Extremely useful for those "cross-cutting" bits. I have tags like > "keybinding", "osx" and "linux", and working on others as appropriate. Hm. Interesting but I guess this is not my use-case (except for :keybinding:). I do use "(when (system-is-linux) ... )" and similar all over my configuration. Although I am a huge fan of tagging, I don't see the use when editing my emacs config (yet). > - Add TODOs to your init file. I am using ~/org/mainfile.org -> "* shorts" -> "** TODO do this :hostname:" all the time. Also for my config tasks. No worries: I do see your point but I like to have all my sysadmin-tasks combined in "mainfile.org/shorts". So maybe this is just me. > Here is my example, but I stand on the shoulders of giants: > > https://github.com/jonnay/emagicians-starter-kit Thanks for sharing! One thing which I would appreciate would be that it is more easy to write documentation (including URLs; outside of elisp sections) in org. Naive question: Are there any performance issues with not being able to compile my config.org to config.elc as it is possible with config.el files? -- Karl Voit