Re: [Orgmode] canonical modifications to makefile for ubuntu feisty emacs 22.1.1?

2007-09-06 Thread Ian Barton


At some point, I made a mess of things in upgrading org-mode; stupidly 
I sometimes modified the makefile so as to install the local lisp 
files to a local lisp tree ~/emacs/site-lisp (loaded by my .emacs) and 
sometimes so that they ended up in /usr/local/share/emacs/site-lisp. 
My bad.



Brian,

Having got some similar holes in my feet I install in my /home directory.

In my Makefile I have:

# Where local software is found
prefix=~/emacs

# Where local lisp files go.
lispdir = $(prefix)/org

In my .emacs:

(setq load-path (cons ~/emacs/org load-path))

Thus any mistakes only affect my /home directory an so are more easily 
fixed. If you are the only user of the computer, this method works well.


Ian.


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] canonical modifications to makefile for ubuntu feisty emacs 22.1.1?

2007-09-05 Thread Brian van den Broek

Hi all,

In addition to being pretty new to org-mode, I'm also an emacs novice. 
I am running ubuntu feisty with emacs 22.1.1 from the feisty backports 
repository.


At some point, I made a mess of things in upgrading org-mode; stupidly 
I sometimes modified the makefile so as to install the local lisp 
files to a local lisp tree ~/emacs/site-lisp (loaded by my .emacs) and 
sometimes so that they ended up in /usr/local/share/emacs/site-lisp. 
My bad.


This just bit me as I installed 5.08 and ended up running 5.07a 
despite that until I worked things out. Bandage applied to foot, all 
seems fine for now.


But, I'd like not to shoot myself again. As yet, I've been modifying 
the makefile on the basis of hope, rather than knowledge.


Could someone with a similar OS/emacs combo please suggest what's the 
right thing to do?


Thanks and best,

Brian vdB


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] canonical modifications to makefile for ubuntu feisty emacs 22.1.1?

2007-09-05 Thread Brian van den Broek

Brian van den Broek said unto the world upon 09/05/2007 10:42 AM:

Hi all,

In addition to being pretty new to org-mode, I'm also an emacs novice. I 
am running ubuntu feisty with emacs 22.1.1 from the feisty backports 
repository.


At some point, I made a mess of things in upgrading org-mode; stupidly I 
sometimes modified the makefile so as to install the local lisp files to 
a local lisp tree ~/emacs/site-lisp (loaded by my .emacs) and sometimes 
so that they ended up in /usr/local/share/emacs/site-lisp. My bad.


snip

Could someone with a similar OS/emacs combo please suggest what's the 
right thing to do?



Hi all,

I got a couple of off-list replies. I summarize them here for future 
googlers :-)


Both replies suggested that ~/emacs/site-lisp was probably the right 
thing. (You can ensure that works by including a line like

   (add-to-list 'load-path /home/brian/emacs/site-lisp)
early in your .emacs.)

The really helpful bit was reminding me that I ought to run the make 
dance as me, rather than by sudo'ing. This will ensure that the 
process will only work if I am indeed installing into my local directory.


Thanks to those who wrote,

Brian vdB


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode