about summary refs log tree commit diff
path: root/users/sterni/emacs
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-05-26T11·28+0200
committerclbot <clbot@tvl.fyi>2022-05-26T11·51+0000
commit3a2ad8ed3b5b95bb4978b21b7daa5da9944be6e2 (patch)
tree4e1776dc23b59c835afd0d10347dfc2138b9c068 /users/sterni/emacs
parent66d2ea3dfd900cdd0c356e9aeb9861e00c195f88 (diff)
feat(sterni/emacs): fill background of languagetool issues r/4130
This used to be the behavior of languagetool.el which we now restore
finally. The yellow underline was really easy to miss on a white
background.

Change-Id: I8b34ed64f9f7a82c39de84575877910335024ffe
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5678
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'users/sterni/emacs')
-rw-r--r--users/sterni/emacs/init.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el
index 81cf7c954193..38a87a286417 100644
--- a/users/sterni/emacs/init.el
+++ b/users/sterni/emacs/init.el
@@ -303,7 +303,10 @@
   (evil-define-key 'normal 'global (kbd "<leader>mll") 'languagetool-check)
   (evil-define-key 'normal 'global (kbd "<leader>mlc") 'languagetool-correct-at-point)
   (evil-define-key 'normal 'global (kbd "<leader>mls") 'languagetool-set-language)
-  (evil-define-key 'normal 'global (kbd "<leader>mlr") 'languagetool-clear-suggestions))
+  (evil-define-key 'normal 'global (kbd "<leader>mlr") 'languagetool-clear-suggestions)
+  ;; Fill background of issues instead of just underlining to make it easier to read
+  (set-face-background 'languagetool-issue-default "yellow")
+  (set-face-background 'languagetool-issue-misspelling "red"))
 
 (unless (server-running-p)
   (server-start))