From ab64e2bb3c83fa28e02524fdbe6aecf4073b63f3 Mon Sep 17 00:00:00 2001 From: toctan Date: Wed, 4 Jun 2014 20:23:08 +0800 Subject: [PATCH] Extra newline and indent when RETURN between {} --- modules/prelude-programming.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/prelude-programming.el b/modules/prelude-programming.el index 5825f69..c8440ae 100644 --- a/modules/prelude-programming.el +++ b/modules/prelude-programming.el @@ -121,6 +121,9 @@ This functions should be added to the hooks of major modes for programming." (when prelude-guru (guru-mode +1)) (smartparens-mode +1) + (sp-pair "{" nil :post-handlers + '(((lambda (&rest _ignored) + (prelude-smart-open-line-above)) "RET"))) (prelude-enable-whitespace) (prelude-local-comment-auto-fill) (prelude-font-lock-comment-annotations))