Enable smartparens-strict-mode for prog modes

This commit is contained in:
syl20bnr 2014-12-11 22:15:41 -05:00
parent 1f1c86393f
commit 3f751e3a4e
2 changed files with 3 additions and 3 deletions

View file

@ -104,7 +104,7 @@ must be defined in `dotspacemacs/init' function to take effect.")
:config (spacemacs|hide-lighter ruby-end-mode)))
(defun erlang-elixir/init-smartparens ()
(add-hook 'erlang-mode-hook 'smartparens-mode))
(add-hook 'erlang-mode-hook 'smartparens-strict-mode))
(defun erlang-elixir/init-yasnippet ()
(add-hook 'erlang-mode-hook 'spacemacs/load-yasnippet))

View file

@ -1967,8 +1967,8 @@ determine the state to enable when escaping from the insert state.")
:defer t
:init
(progn
(add-to-hooks 'smartparens-mode '(markdown-mode-hook
prog-mode-hook)))
(add-to-hooks 'smartparens-strict-mode '(markdown-mode-hook
prog-mode-hook)))
:config
(progn
(require 'smartparens-config)