diff options
| author | jason | 2017-11-07 16:28:42 -0700 |
|---|---|---|
| committer | jason | 2017-11-07 16:28:42 -0700 |
| commit | 80af316de59d8f7a517c3b0a4b574e4c25b38ccf (patch) | |
| tree | eb35ff55a56e6ad63a64c06b05420cd2681ba6cf | |
| parent | fcf0f04c3053f0ca98cfe4a7e068c5b9af51394a (diff) | |
| download | dotemacs-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.org | 15 |
1 files changed, 8 insertions, 7 deletions
| @@ -503,13 +503,14 @@ plugin. | |||
| 503 | This part is for setting up python mode in the way I prefer. | 503 | This 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 |
| 515 | Installation: | 516 | Installation: |