From 9ad45bc55b15e1c5d4d1955d8be2f787d94417fa Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 8 Dec 2023 10:54:59 +0000 Subject: [PATCH] emacs: add nlinum and git-gutter --- home/emacs/default.nix | 2 ++ home/emacs/init.el | 13 +++++++++++++ home/emacs/init.org | 16 ++++++++++++++++ 3 files changed, 31 insertions(+) diff --git a/home/emacs/default.nix b/home/emacs/default.nix index a09c3af3..e8cccba4 100644 --- a/home/emacs/default.nix +++ b/home/emacs/default.nix @@ -77,6 +77,8 @@ which-key link-hint darkroom + nlinum + git-gutter # writing-packages markdown-mode diff --git a/home/emacs/init.el b/home/emacs/init.el index 6cf6a30d..d9587a45 100644 --- a/home/emacs/init.el +++ b/home/emacs/init.el @@ -284,6 +284,19 @@ :ensure t :config (zone-when-idle (* 60 60 2))) ; 2 hours +;; git-gutter needs obsolete `global-linum-mode', `nlinum' provides +;; this until updated +(use-package nlinum + :ensure t) + +(use-package git-gutter + :ensure t + :after nlinum + :config (global-git-gutter-mode +1) + :custom + (git-gutter:visual-line t) + (git-gutter:update-interval 0.5)) + (setq org-directory "~/Org" org-default-notes-file (expand-file-name "notes.org" org-directory) org-pretty-entities-include-sub-superscripts t diff --git a/home/emacs/init.org b/home/emacs/init.org index f51a683c..e6852c42 100644 --- a/home/emacs/init.org +++ b/home/emacs/init.org @@ -342,6 +342,22 @@ :ensure t :config (zone-when-idle (* 60 60 2))) ; 2 hours #+end_src + +** Git-gutter +#+begin_src emacs-lisp + ;; git-gutter needs obsolete `global-linum-mode', `nlinum' provides + ;; this until updated + (use-package nlinum + :ensure t) + + (use-package git-gutter + :ensure t + :after nlinum + :config (global-git-gutter-mode +1) + :custom + (git-gutter:visual-line t) + (git-gutter:update-interval 0.5)) +#+end_src * Org-mode For reference information, see [[https://orgmode.com][Org-mode website]]