diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2018-04-17 09:10:15 -0700 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2018-04-17 09:10:15 -0700 |
commit | bedf5663149e20fbc82e5351a0b7c8756ef56f75 (patch) | |
tree | cbd1d8fbf8e53f0d7dc85b010323bae9c4978749 | |
parent | [emacs] Add a custom variable for the files ignored by projectile. (diff) | |
download | emacs.d-bedf5663149e20fbc82e5351a0b7c8756ef56f75.tar.gz |
[emacs] Rewrite the python module.
-rw-r--r-- | emacs.d/modules/module-python.el | 16 |
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> |