Nathan Neff <[email protected]> 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
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode