python: Move smartparens config to correct place
This commit is contained in:
parent
b123b21498
commit
7f95d250db
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue