[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/agitate a5ee057fd5 65/67: Add sample configuration to t
From: |
ELPA Syncer |
Subject: |
[elpa] externals/agitate a5ee057fd5 65/67: Add sample configuration to the manual |
Date: |
Wed, 28 Sep 2022 16:57:30 -0400 (EDT) |
branch: externals/agitate
commit a5ee057fd563632679580318c6a1689bcb7bd9d8
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add sample configuration to the manual
---
README.org | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/README.org b/README.org
index 9f8655ac48..db7ab5e17e 100644
--- a/README.org
+++ b/README.org
@@ -256,11 +256,44 @@ Finally, in your =init.el= (or equivalent) evaluate this:
Everything is in place to set up the package.
-* TODO Sample configuration
+* Sample configuration
:PROPERTIES:
:CUSTOM_ID: h:9ea57def-7883-44bd-b27e-54127457b808
:END:
+#+begin_src emacs-lisp
+;; These are all OPTIONAL. You should just use whatever key bindings
+;; or setup you prefer.
+
+;; Agitate is still a WORK-IN-PROGRESS.
+
+(require 'agitate "/home/prot/Git/Projects/agitate/agitate.el")
+
+(add-hook 'diff-mode-hook #'agitate-diff-enable-outline-minor-mode)
+
+(advice-add #'vc-git-push :override #'agitate-vc-git-push-prompt-for-remote)
+
+(let ((map global-map))
+ (define-key map (kbd "C-x v =") #'agitate-diff-buffer-or-file) ; replace
`vc-diff'
+ (define-key map (kbd "C-x v g") #'agitate-vc-git-grep) ; replace
`vc-annotate'
+ (define-key map (kbd "C-x v s") #'agitate-vc-git-show)
+ (define-key map (kbd "C-x v c") #'agitate-vc-git-format-patch-single))
+(let ((map diff-mode-map))
+ (define-key map (kbd "C-c C-b") #'agitate-diff-refine-cycle) ; replace
`diff-refine-hunk'
+ (define-key map (kbd "C-c C-n") #'agitate-diff-narrow-dwim))
+(let ((map log-view-mode-map))
+ (define-key map (kbd "w") #'agitate-log-view-kill-revision)
+ (define-key map (kbd "W") #'agitate-log-view-kill-revision-expanded))
+(let ((map vc-git-log-view-mode-map))
+ (define-key map (kbd "c") #'agitate-vc-git-format-patch-single))
+(let ((map log-edit-mode-map))
+ (define-key map (kbd "C-c C-i C-n") #'agitate-log-edit-insert-file-name)
+ ;; See user options `agitate-log-edit-emoji-collection' and
+ ;; `agitate-log-edit-conventional-commits-collection'.
+ (define-key map (kbd "C-c C-i C-e") #'agitate-log-edit-emoji-commit)
+ (define-key map (kbd "C-c C-i C-c") #'agitate-log-edit-conventional-commit))
+#+end_src
+
* COPYING
:PROPERTIES:
:CUSTOM_ID: h:22035775-da3a-4f11-b078-bbe76ef8a93b
- [elpa] externals/agitate 417539dc73 03/67: Add agitate-log-edit-insert-file-name command, (continued)
- [elpa] externals/agitate 417539dc73 03/67: Add agitate-log-edit-insert-file-name command, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 1f35cecc20 17/67: Add agitate-diff-kill-dwim prototype, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 839892328b 28/67: Add missing backronym, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 4ed8d553ba 22/67: Record TODO for vc-git-push replacements, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate bb94713469 40/67: Fix formatting of inline code in the manual, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 475b75a91a 26/67: Add skeleton of README.org, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate cbe4eed8b2 23/67: Add agitate-log-edit-emoji-commit command+option, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate c54fe94ac1 55/67: Add agitate-vc-git-prompt-format-patch-single cmd, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 6c89d23954 47/67: Remove agitate-diff-kill-dwim (doesn't work), ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 91e685d0fb 37/67: Add dir-locals.el, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate a5ee057fd5 65/67: Add sample configuration to the manual,
ELPA Syncer <=
- [elpa] externals/agitate 052d3e3570 61/67: Simplify agitate--vc-git-commit-prompt, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 51fd96aba6 56/67: Tweak format of quote in the README.org, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate dce39b452c 63/67: Make agitate-vc-git-kill-commit-message use completion, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate da4a2bb77a 34/67: Update agitate.el headers and Commentary, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 7564713208 29/67: Rewrite outline heading for diffs, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate f736eb51a7 67/67: Tweak markup of "git-grep(1)", ELPA Syncer, 2022/09/28
- [elpa] externals/agitate b6e5cdbdda 14/67: Add agitate-enable-outline-minor-mode function, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate d1de59188d 08/67: Set minimum Emacs to 28.1, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 764644c218 15/67: Use 'length>' again since b6e5cdb requires Emacs 28.1, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 95e6f9186e 09/67: Update one-line description, ELPA Syncer, 2022/09/28