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:
parent
473d41f889
commit
089fe56079
3 changed files with 5 additions and 15 deletions
|
@ -1,15 +1,5 @@
|
|||
;;; input/keymaps/autoload/bepo.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-bepo-highlight-hard-spaces ()
|
||||
"Highlight hard (non-breaking) space characters (`?\u00a0').
|
||||
\(This is also ?\240.)
|
||||
This also sets `nobreak-char-display' to nil, to turn off its
|
||||
low-level, vanilla highlighting."
|
||||
(interactive)
|
||||
(when (boundp 'nobreak-char-display) (setq nobreak-char-display nil))
|
||||
(font-lock-add-keywords nil `(("[\u00a0]+" (0 'doom-bepo-hard-space 'prepend))) 'APPEND))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-bepo-rotate-ts-bare-keymap (keymaps)
|
||||
"Rotate [jk] with [ts] in KEYMAP."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue