aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason2017-06-29 14:58:35 -0600
committerjason2017-06-29 14:58:35 -0600
commitb40697897a8736b2a28e2789bcb705b344222780 (patch)
treef350d0a1d64e902544f8924213699ae1de5e26b8
parentfe51470359f9835c3247f77043548f163c977af2 (diff)
downloaddotemacs-b40697897a8736b2a28e2789bcb705b344222780.tar.gz
dotemacs-b40697897a8736b2a28e2789bcb705b344222780.zip
add fill-column and autofill mode to python hook
-rw-r--r--config.org10
1 files changed, 10 insertions, 0 deletions
diff --git a/config.org b/config.org
index 20265d3..72a1d1b 100644
--- a/config.org
+++ b/config.org
@@ -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
390Enable 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
388Installation: 398Installation:
389- Install Rust: https://www.rust-lang.org/en-US/install.html 399- Install Rust: https://www.rust-lang.org/en-US/install.html