From: Nick Dokos <nicholas.dokos@hp.com>
To: Nathan Neff <nathan.neff@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Add org-habit to org-modules
Date: Mon, 05 Apr 2010 11:34:15 -0400 [thread overview]
Message-ID: <2616.1270481655@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Nathan Neff <nathan.neff@gmail.com> of "Mon\, 05 Apr 2010 10\:10\:42 CDT." <w2w211769421004050810oe240f554p8343fa870913817b@mail.gmail.com>
Nathan Neff <nathan.neff@gmail.com> 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:
>
> (setq org-modules (quote (org-bbdb org-bibtex blah blah blah)))
>
> I'm looking for something like this:
> ;; Except this doesn't work :-)
> (append org-modules (list ('org-habit)))
>
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
next prev parent reply other threads:[~2010-04-05 15:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-05 15:10 Add org-habit to org-modules Nathan Neff
2010-04-05 15:30 ` Matt Lundin
2010-04-05 20:42 ` Nathan Neff
2010-04-05 15:34 ` Nick Dokos [this message]
2010-04-05 15:56 ` Nick Dokos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2616.1270481655@gamaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=nathan.neff@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.