Emacs: Eshell: Fix display of nbsp, e.g. with 'tree'

master
Pierre Neidhardt 2017-06-17 12:14:45 +01:00
parent d3c32a2027
commit 36e153f979
2 changed files with 7 additions and 0 deletions

View File

@ -416,6 +416,9 @@ This does not interfere with `subword-mode'."
(set (make-local-variable 'paragraph-start) "
"))
(defun turn-off-nobreak-char-display ()
(set (make-local-variable 'nobreak-char-display) nil))
(defun turn-on-skeleton-markers ()
"Allow skeletons to make markers to ease field navigation."
(add-hook 'skeleton-end-hook 'skeleton-make-markers))

View File

@ -68,6 +68,10 @@
(add-to-list 'eshell-command-aliases-list alias))
(eshell-write-aliases-list))
;;; Hooks
;;; `nobreak-char-display' makes some output look weird, e.g. with 'tree'.
(add-hook 'eshell-mode-hook 'turn-off-nobreak-char-display)
;;; Emacs' standard functions fail when output has empty lines.
;;; This implementation is more reliable.
;;; DONE: Reported upstream: