Commits

yagnesh raghava yakkala committed 9e22432

* init-python.el: load python-mode from python.el

Comments (0)

Files changed (2)

init-auto-insert.el

         ("\\.el$"  . ["insert.el" alexott/auto-update-defaults])
         ("\\.pl$"  . ["insert.pl" alexott/auto-update-defaults])
         ("\\.ncl$" . ["insert.ncl" alexott/auto-update-defaults])
-        ("\\.py$"  . ["insert.py" alexott/auto-update-defaults])
-        ("\\.py3$" . ["insert.py3" alexott/auto-update-defaults])
         ))
 
 
 (setq py-install-directory  "~/.emacs.d/el-get/python")
 (require 'python)
 
+(autoload 'python-mode "python.el" "Python Mode." t)
 (add-to-list 'auto-mode-alist '("\\.\\(py\\|py3\\)$" . python-mode))
 
-
 ;;; --------------------------------------------------------------------
 ;; PYLOOKUP
 (setq pylookup-dir "~/.emacs.d/el-get/pylookup")
             (local-set-key (kbd "C-z C-l") 'pylookup-lookup)
             (local-set-key (kbd "C-z C-s") 'pylookup-lookup-at-point)))
 
+(add-hook 'pylookup-mode-hook
+          (lambda ()
+            (make-local-variable browse-url-browser-function)
+            (setq browse-url-browser-function 'w3m)))
+
 ;;; init-python.el ends here