Mercurial > dotfiles
comparison .emacs @ 19:b5d75594b356
Add support for the ipython-mode stuff and remove vestigial pymacs code.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 08 Dec 2008 10:58:06 -0600 |
parents | 34fd1e79495b |
children | 8715ccb6f61b |
comparison
equal
deleted
inserted
replaced
18:30467b2328cb | 19:b5d75594b356 |
---|---|
8 ; * Messages * buffer) | 8 ; * Messages * buffer) |
9 (require 'ido) | 9 (require 'ido) |
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 'python-mode) | |
14 (require 'ipython) | |
15 | |
13 (require 'show-wspace) | 16 (require 'show-wspace) |
14 (require 'doctest-mode) | |
15 | 17 |
16 (require 'mercurial) | 18 (require 'mercurial) |
17 | 19 |
18 ; Clojure | 20 ; Clojure |
19 (require 'clojure-auto) | 21 (require 'clojure-auto) |
53 (defun af-python-mode-hook () | 55 (defun af-python-mode-hook () |
54 ; highlight tabs in Python | 56 ; highlight tabs in Python |
55 (make-variable-buffer-local 'font-lock-mode-hook) | 57 (make-variable-buffer-local 'font-lock-mode-hook) |
56 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs) | 58 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs) |
57 (make-variable-buffer-local 'python-indent) | 59 (make-variable-buffer-local 'python-indent) |
58 (if (string-match "melange" buffer-file-name) | 60 (if (and buffer-file-name (string-match "melange" buffer-file-name)) |
59 (set-variable 'python-indent 2)) | 61 (set-variable 'python-indent 2)) |
60 (af-tab-fix) | 62 (af-tab-fix) |
61 ) | 63 ) |
62 (add-hook 'python-mode-hook 'af-python-mode-hook) | 64 (add-hook 'python-mode-hook 'af-python-mode-hook) |
63 | 65 |
64 ;;pymacs | |
65 (if (string-match "unixSoft/lib/python" (getenv "PATH")) | |
66 (setenv "PYTHONPATH" (concat (getenv "HOME") "/unixSoft/lib/python")) | |
67 ) | |
68 (autoload 'pymacs-apply "pymacs") | |
69 (autoload 'pymacs-call "pymacs") | |
70 (autoload 'pymacs-eval "pymacs" nil t) | |
71 (autoload 'pymacs-exec "pymacs" nil t) | |
72 (autoload 'pymacs-load "pymacs" nil t) | |
73 (eval-after-load "pymacs" | |
74 '(add-to-list 'pymacs-load-path "~/unixSoft/lib/python")) | |
75 ;(pymacs-load "ropemacs" "rope-") | |
76 ;(setq ropemacs-enable-autoimport t) | |
77 | 66 |
78 ; text-mode tries to use M-s for something other than my save shortcut. | 67 ; text-mode tries to use M-s for something other than my save shortcut. |
79 ; That's evil. Stop it from doing that. | 68 ; That's evil. Stop it from doing that. |
80 (add-hook 'text-mode-hook '(lambda () | 69 (add-hook 'text-mode-hook '(lambda () |
81 (define-key text-mode-map "\M-s" | 70 (define-key text-mode-map "\M-s" |