From 8e15063364d7f687d7a5ab8be9999dd68a670606 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Sat, 29 Sep 2012 07:27:51 +0200 Subject: [PATCH] Small fixes to the guide and the manual * org.texi (Installation, Feedback, Batch execution): Use (add-to-list 'load-path ... t) for the contrib dir. * orgguide.texi (Activation): No need to add org-mode to auto-mode-alist since Emacs 22.2. --- doc/org.texi | 6 +++--- doc/orgguide.texi | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index 57ed1cf73..bf484b992 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -936,7 +936,7 @@ If you plan to use code from the @file{contrib} subdirectory without compiling them, do a similar step for this directory: @example -(add-to-list 'load-path "~/path/to/orgdir/contrib/lisp") +(add-to-list 'load-path "~/path/to/orgdir/contrib/lisp" t) @end example If you want to include those files with the build and install, please @@ -1090,7 +1090,7 @@ is not necessary. In that case it is sufficient to start Emacs as @code{emacs ;; add latest org-mode to load path (add-to-list 'load-path (expand-file-name "/path/to/org-mode/lisp")) -(add-to-list 'load-path (expand-file-name "/path/to/org-mode/contrib/lisp")) +(add-to-list 'load-path (expand-file-name "/path/to/org-mode/contrib/lisp" t)) ;; activate org (require 'org-install) @@ -14532,7 +14532,7 @@ done emacs -Q --batch -l $ORGINSTALL \ --eval "(progn (add-to-list 'load-path (expand-file-name \"~/src/org/lisp/\")) -(add-to-list 'load-path (expand-file-name \"~/src/org/contrib/lisp/\")) +(add-to-list 'load-path (expand-file-name \"~/src/org/contrib/lisp/\" t)) (require 'org)(require 'org-exp)(require 'ob)(require 'ob-tangle) (mapc (lambda (file) (find-file (expand-file-name file \"$DIR\")) diff --git a/doc/orgguide.texi b/doc/orgguide.texi index 1140494af..0c6f66813 100644 --- a/doc/orgguide.texi +++ b/doc/orgguide.texi @@ -287,7 +287,7 @@ yourself. @smalllisp ;; The following lines are always needed. Choose your own keys. -(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) +(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) ; not needed since Emacs 22.2 (add-hook 'org-mode-hook 'turn-on-font-lock) ; not needed when global-font-lock-mode is on (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) -- 2.11.4.GIT