Mercurial > dotfiles
comparison .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 |
comparison
equal
deleted
inserted
replaced
11:9b9098bda691 | 12:d4d720c4c416 |
---|---|
10 (setq ido-enable-flex-matching t) | 10 (setq ido-enable-flex-matching t) |
11 (ido-mode t) | 11 (ido-mode t) |
12 | 12 |
13 (require 'show-wspace) | 13 (require 'show-wspace) |
14 (require 'doctest-mode) | 14 (require 'doctest-mode) |
15 | |
16 (require 'mercurial) | |
15 | 17 |
16 ; Clojure | 18 ; Clojure |
17 (require 'clojure-auto) | 19 (require 'clojure-auto) |
18 (setq auto-mode-alist (cons '("\\.clj$" . clojure-mode) auto-mode-alist)) | 20 (setq auto-mode-alist (cons '("\\.clj$" . clojure-mode) auto-mode-alist)) |
19 | 21 |
58 (af-tab-fix) | 60 (af-tab-fix) |
59 ) | 61 ) |
60 (add-hook 'python-mode-hook 'af-python-mode-hook) | 62 (add-hook 'python-mode-hook 'af-python-mode-hook) |
61 | 63 |
62 ;;pymacs | 64 ;;pymacs |
63 (setenv "PYTHONPATH" (concat (getenv "HOME") "/unixSoft/lib/python")) | 65 (if (string-match "unixSoft/lib/python" (getenv "PATH")) |
66 (setenv "PYTHONPATH" (concat (getenv "HOME") "/unixSoft/lib/python")) | |
67 ) | |
64 (autoload 'pymacs-apply "pymacs") | 68 (autoload 'pymacs-apply "pymacs") |
65 (autoload 'pymacs-call "pymacs") | 69 (autoload 'pymacs-call "pymacs") |
66 (autoload 'pymacs-eval "pymacs" nil t) | 70 (autoload 'pymacs-eval "pymacs" nil t) |
67 (autoload 'pymacs-exec "pymacs" nil t) | 71 (autoload 'pymacs-exec "pymacs" nil t) |
68 (autoload 'pymacs-load "pymacs" nil t) | 72 (autoload 'pymacs-load "pymacs" nil t) |