From 5764bb7ee6b9784d76e7e372f4e02ed400164457 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Fri, 3 Nov 2023 12:30:59 +0100 Subject: [PATCH] emacs: Add blamer.el to show inline git-blame info --- home-manager/modules/emacs/config.org | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/home-manager/modules/emacs/config.org b/home-manager/modules/emacs/config.org index 0840603..af1cb85 100644 --- a/home-manager/modules/emacs/config.org +++ b/home-manager/modules/emacs/config.org @@ -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")