emacs: Add blamer.el to show inline git-blame info
This commit is contained in:
parent
ab2a3202b2
commit
5764bb7ee6
1 changed files with 15 additions and 2 deletions
|
@ -361,10 +361,11 @@ Restore cursor position when re-opening a file
|
||||||
(save-place-mode t)
|
(save-place-mode t)
|
||||||
#+end_src
|
#+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
|
#+begin_src emacs-lisp
|
||||||
(setq split-height-threshold nil)
|
(setq split-height-threshold nil
|
||||||
|
window-min-width 120)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Set fill column to 80
|
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))
|
(define-fringe-bitmap 'git-gutter-fr:deleted [128 192 224 240] nil nil 'bottom))
|
||||||
#+end_src
|
#+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
|
** Syntax checking and highlighting
|
||||||
|
|
||||||
*** Flycheck
|
*** Flycheck
|
||||||
|
@ -1825,6 +1837,7 @@ The settings provided here are also the defaults, set any to =nil= to disable.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package org-chef
|
(use-package org-chef
|
||||||
|
:after org-capture
|
||||||
:config
|
:config
|
||||||
(add-to-list 'org-capture-templates '("r" "Recipes"))
|
(add-to-list 'org-capture-templates '("r" "Recipes"))
|
||||||
(add-to-list 'org-capture-templates '("rr" "Recipe" entry (file "~/org/cookbook.org")
|
(add-to-list 'org-capture-templates '("rr" "Recipe" entry (file "~/org/cookbook.org")
|
||||||
|
|
Loading…
Reference in a new issue