Eric Fraga <e.fr...@ucl.ac.uk> wrote: > Sebastien Vauban <wxhgmqzgw...@spammotel.com> writes: > > > Hi Eric, > > > > Eric Fraga wrote: > >> (add-to-list 'load-path "~/git/org-mode") > > > > Why that one? > > Ahh, that's a bit of historical garbage. There was a point a while back > where org-install seemed to have lisp/org-xxx paths and the easiest fix > was to add the root to the list of paths. The problem was fixed fairly > quickly but I forgot to remove my temporary fix. > > >> What should I or could I remove from this? > > > > What I do is: > > > > #+begin_src emacs-lisp > > (when (locate-library "org-install") > > (require 'org-install)) > > #+end_src > > Actually, I now have > > #+begin_src emacs-lisp > (add-to-list 'load-path "~/git/org-mode/lisp") > (add-to-list 'load-path "~/git/org-mode/contrib/lisp/") > (require 'org) > #+end_src > > with a number of other =require= calls for specific ob- and org-e- > packages. This seems to work just fine. >
Note however that this way, the contrib directory will be found before the main lisp directory and that may cause occasional problems. This was recently discussed in this thread: http://thread.gmane.org/gmane.emacs.orgmode/60929/focus=61131 Nick > My question now is whether I should replace the =(require 'org)= by > =(require 'org-loaddefs)= which seems to be the way that Emacs is moving > for packages? > > Thanks, > eric > > -- > : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D > : in Emacs 24.2.50.1 and Org release_7.9.2-406-g2c78ca > >