From 74883bedbc9518985920e816cf28d81bf808d0fb Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 14 May 2015 17:16:41 +0900 Subject: [PATCH] Fix bug in git alias snap --- Makefile | 2 +- emacs.el | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dca27d5..92f152c 100644 --- a/Makefile +++ b/Makefile @@ -323,7 +323,7 @@ endif $(git_conf) alias.todo "grep -nH -E -i 'todo:|note:|fixme:'" - $(git_conf) alias.snap '! gitdir="`git rev-parse --git-dir`" && : >>"$gitdir"/logs/refs/snapshot && cmt=`git stash create` && test -n "$$cmt" && git update-ref refs/snapshot $$cmt && echo Snapshot created: $$cmt' + $(git_conf) alias.snap '! gitdir="`git rev-parse --git-dir`" && : >>"$$gitdir"/logs/refs/snapshot && cmt=`git stash create` && test -n "$$cmt" && git update-ref refs/snapshot $$cmt && echo Snapshot created: $$cmt' #$(git_conf) alias.wc "!git ls-files -z | xargs -0 wc" # $(git_conf) push.default "simple" diff --git a/emacs.el b/emacs.el index ab0d087..34fc918 100644 --- a/emacs.el +++ b/emacs.el @@ -978,6 +978,9 @@ IF OK-IF-ALREADY-EXISTS is true force download." ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; some modes and hooks +(when (autoload-eval-lazily 'term-run '(term-run-shell-command term-run)) + (define-key ctl-x-map "t" 'term-run-shell-command)) + (add-to-list 'safe-local-variable-values '(encoding utf-8)) (setq enable-local-variables :safe)