summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-02-09 11:03:40 +0100
committerGravatar Tom Willemse2016-02-09 11:03:40 +0100
commit31809b70e7f280cf712a16e51b271d62605af278 (patch)
treefae1048fea7b890c84678de19e04f73dd99a175d
parente44cd1286189e7c45de81776263650e03c6af559 (diff)
downloaddotfiles-31809b70e7f280cf712a16e51b271d62605af278.tar.gz
dotfiles-31809b70e7f280cf712a16e51b271d62605af278.zip
Enable electric pairs for Python buffers
-rw-r--r--emacs/.emacs.d/init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 574054c..2026543 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -698,6 +698,9 @@ Only do this when the mode is not in emacs state by default."
;; Enable subword-mode in Python buffers
(add-hook 'python-mode-hook 'subword-mode)
+;; Enable electric pairs mode in Python buffers
+(add-hook 'python-mode-hook 'electric-pair-local-mode)
+
(oni:add-hooks 'slime-repl-mode-hook
'paredit-mode 'set-up-slime-ac)