summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfpi2020-04-09 16:37:39 +0200
committerfpi2020-04-09 16:43:01 +0200
commit131f7087e8542ed8e6a128a4f7b89e0fd199efa8 (patch)
tree2838802a589df90f622527443c714c2b5536aff9
parentMerge branch 'gnus+' into emacs (diff)
Add git-identity
-rw-r--r--emacs-init.org14
-rw-r--r--emacs-private.el.gpgbin1030 -> 1073 bytes
2 files changed, 12 insertions, 2 deletions
diff --git a/emacs-init.org b/emacs-init.org
index 11dc6da..5421d81 100644
--- a/emacs-init.org
+++ b/emacs-init.org
@@ -1251,7 +1251,6 @@ of src_shell{getconf "PATH"}. See [[elisp:(describe-variable
#+end_src
** Git
*** Magit
-
#+BEGIN_SRC emacs-lisp
(use-package magit
:ensure t
@@ -1297,6 +1296,18 @@ Add support for [[https://nvie.com/posts/a-successful-git-branching-model/][gitf
:ensure t
:hook (magit-mode . turn-on-magit-gitflow))
#+end_src
+*** git-identity
+Found it in this [[https://www.manueluberti.eu/emacs/2020/03/30/lockdown-beam-git-identity/][blog post]] from Manuel Uberti. An easy way to handle multiple git identities.
+
+#+begin_src emacs-lisp
+(use-package git-identity
+ :ensure t
+ :custom
+ (git-identity-verify t)
+ (git-identity-list private/git-identity-list)
+ :config (git-identity-magit-mode 1)
+ :bind (:map magit-status-mode-map ("I" . git-identity-info)))
+#+end_src
*** diff-hl
Indicates changed lines in the left fringe. The Hydra can be used to
navigate and revert hunks directly from the buffer. Use =g= to open
@@ -1353,7 +1364,6 @@ some safe local variable values.
(add-to-list 'safe-local-variable-values
'(git-auto-commit-mode . t)))
#+end_src
-
** Projectile
#+BEGIN_SRC emacs-lisp
diff --git a/emacs-private.el.gpg b/emacs-private.el.gpg
index 6b46930..b997400 100644
--- a/emacs-private.el.gpg
+++ b/emacs-private.el.gpg
Binary files differ