From bedf5663149e20fbc82e5351a0b7c8756ef56f75 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 17 Apr 2018 09:10:15 -0700 Subject: [emacs] Rewrite the python module. --- emacs.d/modules/module-python.el | 16 +++++----------- 1 file 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 : -- cgit 1.4.1