From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: Re: Moving my init.el to Org Date: Sun, 31 Aug 2014 18:24:12 -0700 Message-ID: References: <20140831103706.549dc45b@aga-netbook> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOGMG-0006YJ-7g for emacs-orgmode@gnu.org; Sun, 31 Aug 2014 21:24:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOGM9-0007wr-R8 for emacs-orgmode@gnu.org; Sun, 31 Aug 2014 21:24:36 -0400 Received: from plane.gmane.org ([80.91.229.3]:50221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOGM9-0007wn-Ku for emacs-orgmode@gnu.org; Sun, 31 Aug 2014 21:24:29 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XOGM6-0002Y0-Df for emacs-orgmode@gnu.org; Mon, 01 Sep 2014 03:24:26 +0200 Received: from 71-35-163-42.tukw.qwest.net ([71.35.163.42]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Sep 2014 03:24:26 +0200 Received: from algebrat by 71-35-163-42.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Sep 2014 03:24:26 +0200 In-Reply-To: <20140831103706.549dc45b@aga-netbook> 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 On 8/31/2014 1:37 AM, Marcin Borkowski wrote: > I know that I could use org-babel-load-file, or outshine. What are > other possibilities? What are the caveats (and advantages) of both > (other?) ways? Another pro for `outshine`, I've made a folding expression for Vim that respects `outshine` behavior, as far as I use it. augroup filetype_lisp au! au FileType lisp setlocal foldmethod=expr foldexpr=ELispLevel() augroup END function! ELispLevel() let n = len(matchstr(getline(v:lnum), '^;\+')) let l = n - 2 if n >= 3 return ">" . l else return "=" endif endfunction From Vim, typing `:help fold-expr RET` will give a clue as to the ">" and "=" expressions. I tried the init.org for a while, it was fun so you should try it for a while, but I've been trying to reduce how many conversions I have in my projects. And I finally succumbed to the convention of breaking some parts of my init file into parts (nav, org, etc). Trying to keep my init files easy to drop-in and understand was a factor, as I'm always trying to convert people to Emacs and org-mode (success zero so far). And troubleshooting may be considered easier. More specifically, consider that if you try to convert someone to Emacs and org-mode via an init.org file, they will have to deal with three new problems at once. 1. The order of loading org, babel, and the .org file, and any possible issues with old versions of org builtin to Emacs 2. As you show them the emacs-lisp, they may get distracted by all the #+BEGIN_SRC emacs-lisp etc., wondering simultaneously how everything fits together 3. Learning org-mode and .emacs in an intertwined way Brady