diff .emacs @ 12:d4d720c4c416

Add mercurial support to emacs. Improve setting of PYTHONPATH in there.
author Augie Fackler <durin42@gmail.com>
date Wed, 03 Dec 2008 22:34:01 -0600
parents 6b651c7265f2
children 34fd1e79495b
line wrap: on
line diff
--- a/.emacs
+++ b/.emacs
@@ -13,6 +13,8 @@
 (require 'show-wspace)
 (require 'doctest-mode)
 
+(require 'mercurial)
+
 ; Clojure
 (require 'clojure-auto)
 (setq auto-mode-alist (cons '("\\.clj$" . clojure-mode) auto-mode-alist))
@@ -60,7 +62,9 @@ point."
 (add-hook 'python-mode-hook 'af-python-mode-hook)
 
 ;;pymacs
-(setenv "PYTHONPATH" (concat (getenv "HOME") "/unixSoft/lib/python"))
+(if (string-match "unixSoft/lib/python" (getenv "PATH"))
+    (setenv "PYTHONPATH" (concat (getenv "HOME") "/unixSoft/lib/python"))
+  )
 (autoload 'pymacs-apply "pymacs")
 (autoload 'pymacs-call "pymacs")
 (autoload 'pymacs-eval "pymacs" nil t)