summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKΓ©vin Le Gouguec <kevin.legouguec@gmail.com>2020-04-12 00:56:38 +0200
committerKΓ©vin Le Gouguec <kevin.legouguec@gmail.com>2020-04-12 00:56:38 +0200
commit86bac97580285f020621a94ee8649aee04867b08 (patch)
tree809ca2329c99754966ea60a188d21f712872ac31
parentd3a52e8c77c588a190714767f5f607ab7270bfec (diff)
downloaddotfiles-86bac97580285f020621a94ee8649aee04867b08.tar.xz
Tweak compilation lighter for Emacs 27
-rw-r--r--.emacs9
1 files changed, 7 insertions, 2 deletions
diff --git a/.emacs b/.emacs
index 51f4004..6e7206b 100644
--- a/.emacs
+++ b/.emacs
@@ -186,8 +186,13 @@
;; TODO: Narrow (βŒ–, β›Ά)
(if (< emacs-major-version 27)
- (delight 'compilation-in-progress "βš™" 'compile)
- (message "TODO: tweak compilation lighter"))
+ (delight 'compilation-in-progress
+ (propertize "βš™" 'face 'compilation-mode-line-run)
+ 'compile)
+ (let* ((indicator (alist-get 'compilation-in-progress mode-line-modes))
+ (old-props (text-properties-at 0 (car indicator)))
+ (new-props '(face compilation-mode-line-run)))
+ (setcar indicator (apply #'propertize "βš™" (append new-props old-props)))))
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh t)