From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Advice on cleaning (DRYing) up my publishing list Date: Fri, 03 Jan 2014 16:37:37 -0500 Message-ID: <87txdk7nmm.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzCRL-0006w4-SN for emacs-orgmode@gnu.org; Fri, 03 Jan 2014 16:38:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VzCRE-0000Ps-Ip for emacs-orgmode@gnu.org; Fri, 03 Jan 2014 16:37:59 -0500 Received: from plane.gmane.org ([80.91.229.3]:55195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzCRE-0000Pg-BX for emacs-orgmode@gnu.org; Fri, 03 Jan 2014 16:37:52 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VzCRC-00052H-LE for emacs-orgmode@gnu.org; Fri, 03 Jan 2014 22:37:50 +0100 Received: from pool-98-110-175-184.bstnma.fios.verizon.net ([98.110.175.184]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Jan 2014 22:37:50 +0100 Received: from ndokos by pool-98-110-175-184.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Jan 2014 22:37:50 +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 Justin Gordon writes: > Lisp gurus, here is my feeble attempt at DRYing out my org-publish-project-alist.  > > I'm setting up an octopress publishing system for several blogs, so my list might grow and I'd like to avoid duplication > > * Please advise on how I may make this cleaner and clearer. Original is at bottom. > * And is there a better way than using the publishing settings for things like with-toc? > * Does recursive still work for 8.2? > * Would this be better done with some sort of macros? > Yes, instead of constructing list structure on the fly as you do below (cons, append, list, etc.), check out ``Backquote'': (info "(elisp) Backquote") -- Nick