python: Move smartparens config to correct place

This commit is contained in:
Eivind Fonn 2016-04-18 15:56:16 +02:00
parent b123b21498
commit 7f95d250db

View file

@ -265,7 +265,6 @@
'python-setup-shell))
:config
(progn
(add-hook 'inferior-python-mode-hook 'smartparens-mode)
;; add support for `ahs-range-beginning-of-defun' for python-mode
(with-eval-after-load 'auto-highlight-symbol
(add-to-list 'ahs-plugin-bod-modes 'python-mode))
@ -395,6 +394,7 @@ fix this issue."
(error nil))))
(defun python/post-init-smartparens ()
(add-hook 'inferior-python-mode-hook 'smartparens-mode)
(defadvice python-indent-dedent-line-backspace
(around python/sp-backward-delete-char activate)
(let ((pythonp (or (not smartparens-strict-mode)