From 87b737675f5436a2e15bde9afdd00fdc1ba170ba Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sat, 20 May 2023 23:50:29 -0400 Subject: Show fringe and add `diff-hl` --- init.el | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'init.el') diff --git a/init.el b/init.el index 0548b84..bc64453 100644 --- a/init.el +++ b/init.el @@ -117,7 +117,7 @@ (tool-bar-mode -1) (tooltip-mode -1) (menu-bar-mode -1) -(set-fringe-mode -1) +(set-fringe-mode 5) (setq ring-bell-function 'ignore) (setq use-dialog-box nil inhibit-startup-message t @@ -487,6 +487,19 @@ (magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1)) +;; --------------------------------- +;; Highlight diff in fringe +;; ------------------------ +;; In buffers for git-controlled +;; files, highlight changed lines in +;; the fringe. +;; --------------------------------- + +(use-package diff-hl + :straight t + :config (diff-hl-flydiff-mode)) + + ;; --------------------------------------------------------------------- -- cgit v1.2.3