From a8efc6f86ff728cfd6a44edf004334ef6d8ca1d8 Mon Sep 17 00:00:00 2001 From: Tu Do Date: Mon, 6 Apr 2015 11:35:10 +0700 Subject: [PATCH] Don't insert extra quote in dotspacemacs-mode Since dotspacemacs-mode is essentially a Lisp mode, insert a single quote should not automatically insert another single quote to close it. This is the same as smartparens in Emacs Lisp mode out of the box. --- spacemacs/packages.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spacemacs/packages.el b/spacemacs/packages.el index 33cf647fc..01e88cbf6 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -2611,6 +2611,9 @@ It is a string holding: ;; don't create a pair with single quote in minibuffer (sp-local-pair 'minibuffer-inactive-mode "'" nil :actions nil) + ;; don't create a pair with single quote in dotspacemacs-mode + (sp-local-pair 'dotspacemacs-mode "'" nil :actions nil) + (setq sp-cancel-autoskip-on-backward-movement nil)) :config (progn