Commit 6ec6ee497fd1

Vincent Demeester <vincent@sbr.pm>
2016-11-07 10:39:50
Fix smartparens global strict mode
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 54de022
Changed files (1)
.emacs.d
.emacs.d/emacs.org
@@ -1600,10 +1600,12 @@
        :config
        (require 'smartparens-config)
        (smartparens-global-mode)
-       (smartparens-global-strict-mode)
        (show-smartparens-global-mode)
        (which-key-add-key-based-replacements
-         "M-m m" "move prefix"))
+         "M-m m" "move prefix")
+       :init
+       (add-hook 'prog-mode-hook 'turn-on-smartparens-strict-mode)
+       (add-hook 'markdown-mode-hook 'turn-on-smartparens-strict-mode))
    #+END_SRC
 
 ** Killing