emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/git-commit 5bba626 06/11: magit-help: New command


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit 5bba626 06/11: magit-help: New command
Date: Fri, 13 Aug 2021 07:57:25 -0400 (EDT)

branch: elpa/git-commit
commit 5bba6262933a0bfc54dec0d36a3d4e93e26204df
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    magit-help: New command
---
 lisp/magit-mode.el | 5 +++++
 lisp/magit.el      | 1 +
 2 files changed, 6 insertions(+)

diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el
index 26ea42d..2a042d1 100644
--- a/lisp/magit-mode.el
+++ b/lisp/magit-mode.el
@@ -443,6 +443,11 @@ which visits the thing at point using `browse-url'."
   (interactive)
   (user-error "There is no thing at point that could be browsed"))
 
+(defun magit-help ()
+  "Visit the Magit manual."
+  (interactive)
+  (info "magit"))
+
 (defvar bug-reference-map)
 (with-eval-after-load 'bug-reference
   (define-key bug-reference-map [remap magit-visit-thing]
diff --git a/lisp/magit.el b/lisp/magit.el
index 50e196b..04fe7c0 100644
--- a/lisp/magit.el
+++ b/lisp/magit.el
@@ -307,6 +307,7 @@ Also see info node `(magit)Commands for Buffers Visiting 
Files'."
     ("E" "Ediff"          magit-ediff)]
    [("f" "Fetch"          magit-fetch)
     ("F" "Pull"           magit-pull)
+    ("h" "Help"           magit-help)
     ("I" "Init"           magit-init)
     ("j" "Jump to section"magit-status-jump  :if-mode     magit-status-mode)
     ("j" "Display status" magit-status-quick :if-not-mode magit-status-mode)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]