diff options
author | Martin Polden <mpolden@mpolden.no> | 2020-01-26 13:24:51 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2020-01-26 13:29:41 +0100 |
commit | 5683530e98a45dcc3163b4ddea038868efdb466a (patch) | |
tree | 1504b39ecb6e6d3f978bdefe60e61053dd2605f9 /lisp/init-python.el | |
parent | c9d8509c5bf2f1aee7d4859c2234a683d0a4cb9a (diff) |
Remove "-mode" suffix from filenames
Diffstat (limited to 'lisp/init-python.el')
-rw-r--r-- | lisp/init-python.el | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lisp/init-python.el b/lisp/init-python.el new file mode 100644 index 0000000..5b1e6c5 --- /dev/null +++ b/lisp/init-python.el @@ -0,0 +1,18 @@ +(use-package python + :ensure nil ;; package is bundled with emacs + + :config + ;; use flake8 as flymake backend + (setq python-flymake-command '("flake8" "-")) + ;; set buffer local variables + (add-hook 'python-mode-hook + (lambda () + ;; disable electric indent + (setq-local electric-indent-mode nil) + ;; highlight lines longer than 88 characters + (setq-local fill-column 88) + ;; use flat index in imenu + (setq-local imenu-create-index-function + 'python-imenu-create-flat-index)))) + +(provide 'init-python) |