From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Crotti Subject: Re: back to a multiple-file configuration Date: Sat, 10 Dec 2011 21:03:58 +0000 Message-ID: <4EE3C93E.3020708@gmail.com> References: <4EE3A56F.9090407@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZU5T-0002fA-MF for emacs-orgmode@gnu.org; Sat, 10 Dec 2011 16:04:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RZU5S-0005gv-2c for emacs-orgmode@gnu.org; Sat, 10 Dec 2011 16:04:03 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:42781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZU5R-0005gk-Pt for emacs-orgmode@gnu.org; Sat, 10 Dec 2011 16:04:02 -0500 Received: by wgbdt11 with SMTP id dt11so6613241wgb.30 for ; Sat, 10 Dec 2011 13:04:00 -0800 (PST) In-Reply-To: <4EE3A56F.9090407@gmail.com> 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: Org Mode List On 12/10/2011 06:31 PM, Andrea Crotti wrote: > For quite a long time I had my emacs configuration in a big org-mode > file (https://github.com/AndreaCrotti/Emacs-configuration). > > The file has is more than 3500 lines now, and I think the experiment has > failed in a sense. The problem is that this even if this style is great > to produce nice documents and add a lot of useful text, is quite bad to > actually write modular code. > > I rely quite heavily on the order in which things are declared for > example, instead of having different libraries to load. > > So I guess I will switch to a multiple files structure again, which is > more "programmer friendly in a sense". > Anyone else had similar experiences? It's quite a hard task to migrate more than 3500 lines :S This little function is helping a lot, I replace all the :tangle yes setting the right destination name for the given block, so at least I do the first big transiction with org-babel.. (defun ca-replace-with-file (fname) (interactive "sWith String:?\n") (let ((fname (format "modules/ca-%s.el" fname))) (query-replace ":tangle yes" (concat ":tangle " fname)) ))