From eb7b1d237e25951c76b37f94fcc7444d38359f63 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 19 Feb 2019 14:00:44 +0900 Subject: [PATCH] Add gited-list keybind --- emacs.el | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/emacs.el b/emacs.el index c2334b1..76212e3 100644 --- a/emacs.el +++ b/emacs.el @@ -907,7 +907,7 @@ found, otherwise returns nil." (lambda () (setq imenu-generic-expression `(("Sections" ";;;\+\n;; \\(.*\\)\n" 1) - ,@imenu-generic-expression)))) + ,@imenu-generic-expression)))) (with-eval-after-load 'compile (defvar compilation-filter-start) @@ -986,6 +986,9 @@ found, otherwise returns nil." (when (autoload-eval-lazily 'git-command) (define-key ctl-x-map "g" 'git-command)) +(when (autoload-eval-lazily 'gited) + (define-key ctl-x-map (kbd "C-g") 'gited-list)) + (when (safe-require-or-eval 'git-commit) (global-git-commit-mode 1)) (with-eval-after-load 'git-commit @@ -1748,8 +1751,8 @@ and search from projectile root (if projectile is available)." (safe-require-or-eval 'projectile) (projectile-project-p)) (projectile-with-default-dir (projectile-project-root) - (compilation-start command-args - 'grep-mode)) + (compilation-start command-args + 'grep-mode)) (compilation-start command-args 'grep-mode))) @@ -1767,8 +1770,8 @@ and search from projectile root (if projectile is available)." (if (safe-require-or-eval 'projectile) (projectile-with-default-dir (or (projectile-project-root) default-directory) - (compilation-start command-args - 'grep-mode)) + (compilation-start command-args + 'grep-mode)) (compilation-start command-args 'grep-mode))))