aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2019-06-25 09:27:50 -0700
committerRaúl Benencia <rul@kalgan.cc>2019-06-25 09:27:50 -0700
commit57c8c34206457acc769f29427284a71ab5f1dda0 (patch)
tree65d758fad93ef09f97b179b38f111ac13959a293
parentd1289f9c2469662f31a7fd0bc23996f367d68790 (diff)
Enable autopep8 on Python mode
-rw-r--r--.emacs1
-rw-r--r--.emacs.local.d/modes/python.el1
2 files changed, 2 insertions, 0 deletions
diff --git a/.emacs b/.emacs
index e250c9c..a2aaa08 100644
--- a/.emacs
+++ b/.emacs
@@ -34,6 +34,7 @@
(load-file "~/.emacs.local.d/modes/org.el")
(load-file "~/.emacs.local.d/modes/package.el")
(load-file "~/.emacs.local.d/modes/projectile.el")
+(load-file "~/.emacs.local.d/modes/python.el")
(load-file "~/.emacs.local.d/modes/smex.el")
(load-file "~/.emacs.local.d/modes/sml.el")
(load-file "~/.emacs.local.d/modes/sublimity.el")
diff --git a/.emacs.local.d/modes/python.el b/.emacs.local.d/modes/python.el
new file mode 100644
index 0000000..3186c72
--- /dev/null
+++ b/.emacs.local.d/modes/python.el
@@ -0,0 +1 @@
+(add-hook 'python-mode-hook 'py-autopep8-enable-on-save)
nihil fit ex nihilo