aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason2017-11-07 16:28:42 -0700
committerjason2017-11-07 16:28:42 -0700
commit80af316de59d8f7a517c3b0a4b574e4c25b38ccf (patch)
treeeb35ff55a56e6ad63a64c06b05420cd2681ba6cf
parentfcf0f04c3053f0ca98cfe4a7e068c5b9af51394a (diff)
downloaddotemacs-80af316de59d8f7a517c3b0a4b574e4c25b38ccf.tar.gz
dotemacs-80af316de59d8f7a517c3b0a4b574e4c25b38ccf.zip
move python setup to function
this lets me update the python setup hook without having to restart emacs
-rw-r--r--config.org15
1 files changed, 8 insertions, 7 deletions
diff --git a/config.org b/config.org
index 29b7107..153ee19 100644
--- a/config.org
+++ b/config.org
@@ -503,13 +503,14 @@ plugin.
503This part is for setting up python mode in the way I prefer. 503This part is for setting up python mode in the way I prefer.
504 504
505#+BEGIN_SRC emacs-lisp 505#+BEGIN_SRC emacs-lisp
506(add-hook 'python-mode-hook '(lambda () 506(defun my-python-setup ()
507 (anaconda-mode) 507 (anaconda-mode)
508 (anaconda-eldoc-mode) 508 (anaconda-eldoc-mode)
509 (company-mode) 509 (company-mode)
510 (auto-fill-mode 1) 510 (auto-fill-mode 1)
511 (setq-local fill-column 80 511 (setq-local fill-column 79)
512 indent-tabs-mode nil))) 512 (setq-local indent-tabs-mode nil))
513(add-hook 'python-mode-hook 'my-python-setup)
513#+END_SRC 514#+END_SRC
514** Rust 515** Rust
515Installation: 516Installation: