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 1/2] 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 From d91538c3e81d4404598e4672b3f9ed1295509db9 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 9 Sep 2015 18:06:39 +0900 Subject: [PATCH 2/2] Fix typo --- shrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shrc b/shrc index 14e8d35..6cc4474 100755 --- a/shrc +++ b/shrc @@ -25,7 +25,7 @@ __match(){ expr "$1" : ".*$2.*" >/dev/null } -__ln=$'\n' +__lf=$'\n' __cr=$'\r' test -n "$TMP" || export TMP=/tmp/${USER}-tmp