diff options
| author | jason | 2017-06-29 14:58:35 -0600 |
|---|---|---|
| committer | jason | 2017-06-29 14:58:35 -0600 |
| commit | b40697897a8736b2a28e2789bcb705b344222780 (patch) | |
| tree | f350d0a1d64e902544f8924213699ae1de5e26b8 | |
| parent | fe51470359f9835c3247f77043548f163c977af2 (diff) | |
| download | dotemacs-b40697897a8736b2a28e2789bcb705b344222780.tar.gz dotemacs-b40697897a8736b2a28e2789bcb705b344222780.zip | |
add fill-column and autofill mode to python hook
| -rw-r--r-- | config.org | 10 |
1 files changed, 10 insertions, 0 deletions
| @@ -381,9 +381,19 @@ Elpy does a great job of supporting Python so I just use that. | |||
| 381 | 381 | ||
| 382 | (use-package elpy | 382 | (use-package elpy |
| 383 | :ensure t | 383 | :ensure t |
| 384 | :init | ||
| 385 | (setq elpy-rpc-project-specific t) | ||
| 384 | :config | 386 | :config |
| 385 | (elpy-enable)) | 387 | (elpy-enable)) |
| 386 | #+END_SRC | 388 | #+END_SRC |
| 389 | |||
| 390 | Enable some other modes when editing python files | ||
| 391 | |||
| 392 | #+BEGIN_SRC emacs-lisp | ||
| 393 | (add-hook 'python-mode-hook '(lambda () | ||
| 394 | (setq-local fill-column 79) | ||
| 395 | (auto-fill-mode 1))) | ||
| 396 | #+END_SRC | ||
| 387 | ** Rust | 397 | ** Rust |
| 388 | Installation: | 398 | Installation: |
| 389 | - Install Rust: https://www.rust-lang.org/en-US/install.html | 399 | - Install Rust: https://www.rust-lang.org/en-US/install.html |