Browse Source

Use electric-indent-just-newline for C-m in gfm-mode

pull/15/head
10sr 9 years ago
parent
commit
442690867e
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      emacs.el

+ 6
- 1
emacs.el View File

@@ -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


Loading…
Cancel
Save