diff options
| author | Kรฉvin Le Gouguec <kevin.legouguec@gmail.com> | 2022-05-15 16:26:38 +0200 |
|---|---|---|
| committer | Kรฉvin Le Gouguec <kevin.legouguec@gmail.com> | 2022-05-15 16:32:14 +0200 |
| commit | 1c1a8fd913480cb7dc23afa921455d042349452a (patch) | |
| tree | ed3402b8bf45b92355a00cfb10961e8c9b281548 | |
| parent | e2debb34a03d790da14d9c6fe8dd7f303bec7304 (diff) | |
| download | dotfiles-1c1a8fd913480cb7dc23afa921455d042349452a.tar.xz | |
Shorten flymake lighter
| -rw-r--r-- | .emacs | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -326,6 +326,15 @@ (icon (my/symbol-as-icon ?โ))) (setcar indicator (concat (apply #'propertize icon new-props) " ")))) +(with-eval-after-load 'flymake + (let ((indicator (propertize (my/symbol-as-icon ?โ) 'face 'flymake-error))) + ;; Prefer customizing the string instead delight'ing, as flymake + ;; slaps a bunch of helpful properties on top of the lighter, + ;; which delight would strip. + (if (boundp 'flymake-mode-line-lighter) + (setq flymake-mode-line-lighter indicator) + (delight 'flymake-mode indicator 'flymake)))) + (add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh) (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh) |
