Daniel Clemente wrote:
However, there is another small issue here: Isn't there a better way to locally
install an updated version of an emacs package that comes with a centrally
managed OS? In my case, there is an enterprise-wide installation of emacs that I
cannot change - I had to ask a system administrator to make the filename change
for me.
Well, yes; many people do that. You just install your files in a local directory (I use ~/.emacs.d/, for instance ~/.emacs.d/org-6.17c) and ask Emacs to use it; in your .emacs.el:
(add-to-list 'load-path "~/.emacs.d/org-6.17c/lisp") (require 'org-install)
Automatically, Emacs loads the one you specified instead of the global one. I think it is because add-to-list adds elements at the beginning of the list, therefore with more priority. Check: C-h v load-path RET
I never had the problem of a global file overwriting my settings; Emacs behaves very well with that.
-- Daniel
I checked my load-path and the local site was at the end of the list.
What I have in my .emacs is similar to yours, but not quite the same:
(setq load-path (append load-path '("~/.emacs.d/org/lisp")))
This was something I picked up long, long ago, and never worried about.
My guess is that "append" really means just that, and that
"add-to-list" means prepending.
Anyway, org-mode is working correctly now. Thanks for your help!
Bruce
--
------------------------------------------------------------------------
Bruce Hackett Senior Scientist
Norwegian Meteorological Institute (met.no), R & D Div.
P.O. Box 43 - Blindern e-mail: address@hidden
N-0313 Oslo Phone: +47 22 96 33 39
NORWAY Fax: +47 22 96 33 80
Mob: +47 48 048 958
URL: http://met.no/english/r_and_d_activities/people/bruceh.html
------------------------------------------------------------------------
|