From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Add org-habit to org-modules Date: Mon, 05 Apr 2010 11:34:15 -0400 Message-ID: <2616.1270481655@gamaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NyoK1-0004JS-UB for emacs-orgmode@gnu.org; Mon, 05 Apr 2010 11:34:41 -0400 Received: from [140.186.70.92] (port=46112 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyoK0-0004Io-IA for emacs-orgmode@gnu.org; Mon, 05 Apr 2010 11:34:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NyoJy-0002lo-Kc for emacs-orgmode@gnu.org; Mon, 05 Apr 2010 11:34:40 -0400 Received: from vms173015pub.verizon.net ([206.46.173.15]:51253) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NyoJy-0002lZ-Gv for emacs-orgmode@gnu.org; Mon, 05 Apr 2010 11:34:38 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173015.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L0E007FBTX3WN60@vms173015.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 05 Apr 2010 10:34:16 -0500 (CDT) In-reply-to: Message from Nathan Neff of "Mon\, 05 Apr 2010 10\:10\:42 CDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nathan Neff Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Nathan Neff wrote: > Is there a way to add org-habit to the > org-modules list without using org-custom and without > specifying all the modules at once, like this: >=20 > (setq org-modules (quote (org-bbdb org-bibtex blah blah blah))) >=20 > I'm looking for something like this: > ;; Except this doesn't work :-) > (append org-modules (list ('org-habit))) > =C2=A0 Remember: append will return a new list - it does *not* modify its argument. Here are some alternatives - to add at the beginning of org-modules: (setq org-modules (cons 'org-habit org-modules) or at the end: (setq org-modules (append org-modules '(org-habit))) It might be better to use the add-to-list function instead though because it checks if the element is already in the list and only adds it if it is not - not that this function *does* modify its argument so you don't need to assign the result to org-modules: (add-to-list 'org-modules 'org-habit) or to add to the end of the list: (add-to-list 'org-modules 'org-habit t) [In all cases, watch the quotes!] HTH, Nick