From 442690867e649482714e796294812e0637402d24 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 27 Aug 2015 15:16:26 +0900 Subject: [PATCH] Use electric-indent-just-newline for C-m in gfm-mode --- emacs.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index a108396..4239344 100644 --- a/emacs.el +++ b/emacs.el @@ -1249,7 +1249,12 @@ IF OK-IF-ALREADY-EXISTS is true force download." (lambda () (outline-minor-mode 1) (flyspell-mode) - (set (make-local-variable 'comment-start) ";")))) + (set (make-local-variable 'comment-start) ";"))) + (add-hook 'gfm-mode-hook + (lambda () + (define-key gfm-mode-map (kbd "C-m") 'electric-indent-just-newline) + ;;(electric-indent-mode 0) + ))) ;; c-mode ;; http://www.emacswiki.org/emacs/IndentingC