+ magit-status "ls"

This commit is contained in:
Thomas von Dein
2017-07-31 11:29:19 +02:00
parent 8fa2b57fec
commit 9be66cb78c
2 changed files with 468 additions and 456 deletions

15
.emacs
View File

@@ -591,6 +591,7 @@
;; - do not load magit on w32 ;; - do not load magit on w32
;; - Always call `magit-status' with prefix arg ;; - Always call `magit-status' with prefix arg
;; - do bigger jumps in magit with just C-<up|down> ;; - do bigger jumps in magit with just C-<up|down>
;; - add "ls" to magit-status leading to dired
;; ** TODO ;; ** TODO
@@ -4447,12 +4448,18 @@ defun."
(when (re-search-forward "Magit requires Git >=") (when (re-search-forward "Magit requires Git >=")
(kill-buffer-and-window))))) (kill-buffer-and-window)))))
(add-hook 'after-init-hook 'tvd-ignore-magit-warnings-if-any t)) (add-hook 'after-init-hook 'tvd-ignore-magit-warnings-if-any t)
;; HINT: how to add a popup action: ;; now, THIS is the pure genius me: hit "ls in magit-status buffer
;; (magit-define-popup-action 'magit-commit-popup ;; and end up in a dired buffer of current repository. The default
;; ?n "Reshelve" 'magit-reshelve) ;; binding for this is C-M-i, which is not memorizable, while "ls"
;; is. That is, 'l' is a prefix command leading to magit-log-popup
;; and 's' is undefined, which I define here, which then jumps to
;; dired.
(magit-define-popup-action 'magit-log-popup
?s "Dired" 'magit-dired-jump))
;; --------------------------------------------------------------------------------
;; ** Emacs Interface ;; ** Emacs Interface
;; *** Parens ;; *** Parens

File diff suppressed because it is too large Load Diff