Browse Source

Enable smartparens only for programming modes

custom
Bozhidar Batsov 12 years ago
parent
commit
5a01605564
  1. 1
      core/prelude-editor.el
  2. 1
      modules/prelude-programming.el

1
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-autoskip-closing-pair 'always)
(setq sp-hybrid-kill-entire-symbol nil) (setq sp-hybrid-kill-entire-symbol nil)
(sp-use-paredit-bindings) (sp-use-paredit-bindings)
(smartparens-global-mode +1)
;; diminish keeps the modeline tidy ;; diminish keeps the modeline tidy
(require 'diminish) (require 'diminish)

1
modules/prelude-programming.el

@ -120,6 +120,7 @@ This functions should be added to the hooks of major modes for programming."
(flyspell-prog-mode)) (flyspell-prog-mode))
(when prelude-guru (when prelude-guru
(guru-mode +1)) (guru-mode +1))
(smartparens-mode +1)
(prelude-enable-whitespace) (prelude-enable-whitespace)
(prelude-local-comment-auto-fill) (prelude-local-comment-auto-fill)
(prelude-font-lock-comment-annotations)) (prelude-font-lock-comment-annotations))

Loading…
Cancel
Save