changeset 74:fd369b708cbe

Better way of altering load-path, add support for local-to-machine emacs configs.
author Augie Fackler <durin42@gmail.com>
date Thu, 09 Apr 2009 13:27:19 -0500
parents b84c4cac3148
children 585a46facb75
files .emacs
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.emacs
+++ b/.emacs
@@ -3,7 +3,7 @@
 ;  Karl Fogel: http://svn.red-bean.com/repos/kfogel/trunk
 ;  Dave Anderson:
 
-(setq load-path (cons (expand-file-name "~/.elisp") load-path))
+(add-to-list 'load-path (expand-file-name "~/.elisp"))
 ; Better buffer switching and file loading (load first in case we need the
 ; * Messages * buffer)
 (require 'ido)
@@ -134,3 +134,7 @@ point."
 (global-set-key [(meta z)] 'textmate-find-in-project-type)
 (global-set-key [(meta m)] 'iconify-or-deiconify-frame)
 (global-set-key [(control backspace)] 'kill-word)
+
+
+(if (file-regular-p (expand-file-name (concat (getenv "HOME") "/.emacs-machine.el")))
+    (load (expand-file-name "~/.emacs-machine.el")))