From fc562db128dabc0fa2daf7507882215b9c889017 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 26 Mar 2013 10:15:38 -0700 Subject: [PATCH] Stop loading pymacs everytime a python file is loaded. --- init.el | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/init.el b/init.el index 839e4fca..5bc44740 100644 --- a/init.el +++ b/init.el @@ -86,17 +86,15 @@ ;; Multi-lining for python. (require 'multi-line-it) -;; Pymacs -(add-hook 'python-mode-hook - (lambda () - (require 'pymacs) - (autoload 'pymacs-apply "pymacs") - (autoload 'pymacs-call "pymacs") - (autoload 'pymacs-eval "pymacs" nil t) - (autoload 'pymacs-exec "pymacs" nil t) - (autoload 'pymacs-load "pymacs" nil t) - (autoload 'pymacs-autoload "pymacs") - (pymacs-load "ropemacs" "rope-"))) + +(require 'pymacs) +(autoload 'pymacs-apply "pymacs") +(autoload 'pymacs-call "pymacs") +(autoload 'pymacs-eval "pymacs" nil t) +(autoload 'pymacs-exec "pymacs" nil t) +(autoload 'pymacs-load "pymacs" nil t) +(autoload 'pymacs-autoload "pymacs") +(pymacs-load "ropemacs" "rope-") (defun python-tabs () (setq tab-width 4