commit fc9d1d737a7e443df98ed4aa46b4db149f5fc02a
parent 1c1a8fd913480cb7dc23afa921455d042349452a
Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com>
Date: Sun, 15 May 2022 16:52:33 +0200
Break up .emacs section into smaller chunks
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.emacs b/.emacs
@@ -273,7 +273,8 @@
(global-set-key (kbd "C-S-<left>") 'shrink-window-horizontally))
-;; Online packages configuration
+;; Lighters
+
(defun my/symbol-as-icon (c)
;; By default, Emacs 28 uses color fonts for characters from (1) the
;; 'emoji script (2) the 'symbol script, when followed by VS-16.
@@ -334,6 +335,8 @@
(if (boundp 'flymake-mode-line-lighter)
(setq flymake-mode-line-lighter indicator)
(delight 'flymake-mode indicator 'flymake))))
+
+;; Version control.
(add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh)
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)
@@ -361,7 +364,6 @@
(shell-command-to-string
(format "git show --no-patch --date=short --format='%s' %s"
"%cd \"%s\" (%h)" rev)))))
-
;; Major modes configuration