summary refs log tree commit diff
path: root/emacs.d
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/modules/module-python.el16
1 files changed, 5 insertions, 11 deletions
diff --git a/emacs.d/modules/module-python.el b/emacs.d/modules/module-python.el
index f495115..4b2a27c 100644
--- a/emacs.d/modules/module-python.el
+++ b/emacs.d/modules/module-python.el
@@ -1,15 +1,9 @@
-(require 'config-package)
+(setq python-indent-offset 2)
+(add-hook 'python-mode-hook 'eldoc-mode t)
 
-(use-package python
-  :mode(("\\.aurora$" . python-mode)
-        ("BUILD$"     . python-mode)
-        ("\\.py$"     . python-mode))
-
-  :interpreter ("python" . python-mode)
-
-  :config
-  (setq python-indent-offset 2)
-  (add-hook 'python-mode-hook 'eldoc-mode t))
+(add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))
+(add-to-list 'auto-mode-alist '("\\.BUILD\\'" . python-mode))
+(add-to-list 'auto-mode-alist '("\\.aurora\\'" . python-mode))
 
 ;;; errors are reported like this:
 ;;; E241:ERROR   <file name>:<line> <message>