Hi Graham, "Graham Smith" <[EMAIL PROTECTED]> writes:
> I am returning to emacs after a brief try out some time ago. As Org-mode > is now part of the distribution I'm no longer too sure how to update > it. Before I had a folder for Org-mode that my .emacs file pointed to > and I just copied all the new files into that folder. Welcome back to Emacs :) Unless you're using Emacs CVS, it's likely that you want to download the whole Org package every now and then, and make sure you are using org.el that comes with it. To get the latest Org distribution, I am using Pete's script (attached). Please have a look at it; you certainly want to modify variables to make it work in your environment.
#!/bin/sh # script to automate pullingthe latest org from Carsten's site # PJP [EMAIL PROTECTED] # $Revision: 1.1 $ # $Log: update-org.sh,v $ # Revision 1.1 2007/04/26 05:53:54 pete # Initial revision # directory where the org directory is located DIR=$HOME/elisp/testing ORGDIR=$DIR/org TMP=/tmp TMPTAR=$TMP/org.tar.gz # This is where I keep my copy of CVS emacs. EMACSBIN=/usr/local/bin/emacs # you should not need to edit anything else below here # go to the tmp dir cd $TMP # make sure we have the lisp dir mkdir -p $DIR # get the tar file # wget http://staff.science.uva.nl/~dominik/Tools/org/org.tar.gz wget http://orgmode.org/org.tar.gz # ORGDIR is a symbolic link. We get rid of it rm $ORGDIR # cd to the lisp directory cd $DIR # unpack the tar file tar xzvf $TMPTAR # what is the new directory name? ORGVER=`tar tvf $TMPTAR | head -1 | sed 's/ */ /g' | cut -d' ' -f6` # remake the link... ln -s $ORGVER org # make ... cd $ORGDIR mv Makefile Makefile.orig sed s:EMACS=emacs:EMACS=$EMACSBIN: < Makefile.orig > Makefile make
To load the most recent org.el, always put it in the same location and add this location to your load-path in ~/.emacs: (add-to-list 'load-path "~/elisp/testing/org/") Then doing a simple (require 'org-install) somewhere after this should do the trick. It will override any org.el that you might already have in your .../emacs/lisp/ directory. HTH, -- Bastien
_______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode