about summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authorNguyễn Gia Phong <vn.mcsinyx@gmail.com>2018-05-23 21:48:23 +0700
committerNguyễn Gia Phong <vn.mcsinyx@gmail.com>2018-05-23 21:48:23 +0700
commit975b62bd33f48d61550088123b5a1bb930558efe (patch)
tree3ce213248c2776f66ffa4a7b3fff8804a226b6b4 /emacs
parent65e17501d4dde544826f3141275b4db3fc2250a4 (diff)
downloaddotfiles-975b62bd33f48d61550088123b5a1bb930558efe.tar.gz
Update 2018-05-23
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 9a806ff..bb625aa 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -38,5 +38,10 @@
 (setq-default inhibit-splash-screen t)
 (setq-default fill-column 80)
 (add-hook 'prog-mode-hook 'ruler-mode)
+(add-hook 'python-mode-hook
+          (lambda ()
+            (setq fill-column 79)
+            (setq comment-fill-column 72)))
+
 (setq-default indent-tabs-mode nil)
-(add-hook 'prog-mode-hook 'whitespace-mode)
+(add-hook 'find-file-hook 'whitespace-mode)