Edward DeMeulle <e...@demeulle.org> wrote: > Achim Gratz <strom...@nexgo.de> writes: > > It also tells you that it is not a good idea to keep …/org/contrib in > > load-path before …/org. Maybe the manual and Worg should be checked for > > bad advice in that direction? > > My init is set as follows: > (add-to-list 'load-path "~/.emacs.d/org-mode/lisp") > (add-to-list 'load-path "~/.emacs.d/org-mode/contrib/lisp") > > isn't that the way it should be? >
No - C-h f add-to-list RET says: ,---- | add-to-list is a compiled Lisp function in `subr.el'. | | (add-to-list LIST-VAR ELEMENT &optional APPEND COMPARE-FN) | | Add ELEMENT to the value of LIST-VAR if it isn't there yet. | The test for presence of ELEMENT is done with `equal', | or with COMPARE-FN if that's non-nil. | If ELEMENT is added, it is added at the beginning of the list, | unless the optional argument APPEND is non-nil, in which case | ELEMENT is added at the end. `---- So you can either reverse the order, or you can say (add-to-list 'load-path "~/.emacs.d/org-mode/contrib/lisp" t) which will add it to the end of the list. The two methods are not equivalent, mind you, but in either case the org lisp directory will be found before the org contrib lisp directory. And check with C-h v load-path RET afterwards to make sure that things are as they should be. Nick