emacs: Add blamer.el to show inline git-blame info

This commit is contained in:
Erwin Boskma 2023-11-03 12:30:59 +01:00
parent ab2a3202b2
commit 5764bb7ee6
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ

View file

@ -361,10 +361,11 @@ Restore cursor position when re-opening a file
(save-place-mode t)
#+end_src
Prefer to open frames in a horizontal split
Prefer to open frames in a horizontal split and make sure they're of a decent width
#+begin_src emacs-lisp
(setq split-height-threshold nil)
(setq split-height-threshold nil
window-min-width 120)
#+end_src
Set fill column to 80
@ -908,6 +909,17 @@ Visualise git changes in the gutter, next to the line numbers
(define-fringe-bitmap 'git-gutter-fr:deleted [128 192 224 240] nil nil 'bottom))
#+end_src
Show inline git-blame with [[https://github.com/Artawower/blamer.el][blamer.el]]. Inspired by VS Code's Git Lens
#+begin_src emacs-lisp
(use-package blamer
:after bind-key
:bind (("C-c C-i" . blamer-show-commit-info)
("C-c i" . blamer-show-posframe-commit-info))
:config
(global-blamer-mode 1))
#+end_src
** Syntax checking and highlighting
*** Flycheck
@ -1825,6 +1837,7 @@ The settings provided here are also the defaults, set any to =nil= to disable.
#+begin_src emacs-lisp
(use-package org-chef
:after org-capture
:config
(add-to-list 'org-capture-templates '("r" "Recipes"))
(add-to-list 'org-capture-templates '("rr" "Recipe" entry (file "~/org/cookbook.org")