Use simpler method to highlight nbsp

If it does not work on non-X builds we will fall back to the ergodis
method based on adding a font-lock class
This commit is contained in:
Gerry Agbobada
2020-08-15 11:38:38 +02:00
committed by Gerry Agbobada
parent 473d41f889
commit 089fe56079
3 changed files with 5 additions and 15 deletions

View File

@@ -8,6 +8,11 @@
(doom-bepo-rotate-collection-keymaps-h-builder doom-bepo-cr-rotation-style))
(add-hook 'evil-collection-setup-hook #'doom-bepo--evil-collection-hook)
;; Highlight non breaking spaces as error in prog modes only
;; TODO: this variable is defined in a file called xdisp.c Will that work in non-X builds ?
(setq nobreak-char-display t)
(set-face-attribute 'nobreak-space nil :underline t)
(add-transient-hook! 'doom-init-modules-hook
(setq avy-keys '(?a ?u ?i ?e ?, ?c ?t ?s ?r ?n)
lispy-avy-keys '(?a ?u ?i ?e ?, ?c ?t ?s ?r ?n ?m ?b ?p ?o ?v ?d ?l ?j ?z))