Disable highlighting in ccr/consult-history
This commit is contained in:
parent
b196807347
commit
c99617dc84
1 changed files with 9 additions and 7 deletions
4
init.el
4
init.el
|
@ -597,9 +597,11 @@
|
||||||
(ring-elements eshell-history-ring))))
|
(ring-elements eshell-history-ring))))
|
||||||
(history-highlighted (mapcar #'(lambda (cmd)
|
(history-highlighted (mapcar #'(lambda (cmd)
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
|
(text-mode)
|
||||||
(insert cmd)
|
(insert cmd)
|
||||||
(forward-line 0)
|
(forward-line 0)
|
||||||
(eshell-syntax-highlighting--parse-and-highlight 'command (point-max))
|
;; FIXME it breaks trying to highlight commands like `cd /ssh:host:~'
|
||||||
|
;; (eshell-syntax-highlighting--parse-and-highlight 'command (point-max))
|
||||||
(add-face-text-property (point-min) (point-max) '(:background nil))
|
(add-face-text-property (point-min) (point-max) '(:background nil))
|
||||||
(buffer-string)))
|
(buffer-string)))
|
||||||
history))
|
history))
|
||||||
|
|
Reference in a new issue