summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2019-08-31 11:59:22 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2019-08-31 11:59:22 +0200
commitffd0ee8ae1808b378b16f842e2c5e917209daf29 (patch)
treebc7cebeae9115a26608cca706778a336b1eb5336
parentf7dce603852d1d5257a82a8e9b140e9cafe021da (diff)
downloaddotfiles-ffd0ee8ae1808b378b16f842e2c5e917209daf29.tar.xz
Stop delight'ing compilation-in-progress with Emacs≥27
The code below works with the new indicator, but it's a bit ugly. (let ((props (text-properties-at 0 (car (alist-get 'compilation-in-progress mode-line-modes))))) (setf (car (alist-get 'compilation-in-progress mode-line-modes)) (apply #'propertize "⚙ " `(face compilation-mode-line-run ,@props))))
-rw-r--r--.emacs5
1 files changed, 4 insertions, 1 deletions
diff --git a/.emacs b/.emacs
index b851788..7027997 100644
--- a/.emacs
+++ b/.emacs
@@ -116,7 +116,6 @@
(delight 'auto-fill-function "⏎" t)
(delight 'auto-revert-mode "⟳" 'autorevert)
(delight 'auto-revert-tail-mode "⤓" 'autorevert)
-(delight 'compilation-in-progress "⚙" 'compile)
(delight 'eldoc-mode "📖" 'eldoc)
(delight 'footnote-mode "¹" 'footnote)
(delight 'flyspell-mode (propertize "🖋" 'face 'flyspell-incorrect) 'flyspell)
@@ -136,6 +135,10 @@
(delight 'with-editor-mode "⸎" 'with-editor)
;; TODO: Narrow (⌖, ⛶)
+(if (version< emacs-version "27")
+ (delight 'compilation-in-progress "⚙" 'compile)
+ (message "TODO: tweak compilation lighter"))
+
(defun my/magit-mode-hook ()
(when window-system
(local-set-key [C-tab] 'other-window)