From 5a01605564d73029ab618c31774c54f29c78b7c2 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Thu, 26 Sep 2013 14:33:33 +0300 Subject: [PATCH] Enable smartparens only for programming modes --- core/prelude-editor.el | 1 - modules/prelude-programming.el | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/core/prelude-editor.el b/core/prelude-editor.el index 1acbe59..3f8a59d 100644 --- a/core/prelude-editor.el +++ b/core/prelude-editor.el @@ -107,7 +107,6 @@ Will only occur if prelude-whitespace is also enabled." (setq sp-autoskip-closing-pair 'always) (setq sp-hybrid-kill-entire-symbol nil) (sp-use-paredit-bindings) -(smartparens-global-mode +1) ;; diminish keeps the modeline tidy (require 'diminish) diff --git a/modules/prelude-programming.el b/modules/prelude-programming.el index 1027511..df0d3f3 100644 --- a/modules/prelude-programming.el +++ b/modules/prelude-programming.el @@ -120,6 +120,7 @@ This functions should be added to the hooks of major modes for programming." (flyspell-prog-mode)) (when prelude-guru (guru-mode +1)) + (smartparens-mode +1) (prelude-enable-whitespace) (prelude-local-comment-auto-fill) (prelude-font-lock-comment-annotations))