From ba9c9754a67b199e09226394623926075a0e2d74 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 8 Sep 2020 00:31:06 -0700 Subject: Add ‘eshell-syntax-highlighting’ to Eshell configuration --- oni-eshell.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'oni-eshell.el') diff --git a/oni-eshell.el b/oni-eshell.el index 29760cb..6bcadf6 100644 --- a/oni-eshell.el +++ b/oni-eshell.el @@ -4,8 +4,8 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2020.0615.100933 -;; Package-Requires: (eshell-fringe-status esh-autosuggest xterm-color) +;; Version: 2020.0908.002925 +;; Package-Requires: (eshell-fringe-status esh-autosuggest xterm-color eshell-syntax-highlighting) ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -67,13 +67,14 @@ "Set ‘company-posframe-active-map’ to ‘esh-autosuggest-active-map’." (setq-local company-posframe-active-map esh-autosuggest-active-map)) +(add-hook 'eshell-before-prompt-hook #'oni-eshell--set-xterm-variables) (add-hook 'eshell-first-time-mode-hook #'oni-eshell--set-eshell-C-d) +(add-hook 'eshell-load-hook #'oni-eshell--disable-ansi-color-handling) (add-hook 'eshell-load-hook #'oni-eshell--enable-truncating-buffers) (add-hook 'eshell-load-hook #'oni-eshell--enable-xterm-filter) -(add-hook 'eshell-load-hook #'oni-eshell--disable-ansi-color-handling) (add-hook 'eshell-mode-hook 'esh-autosuggest-mode) +(add-hook 'eshell-mode-hook 'eshell-syntax-highlighting-mode) (add-hook 'eshell-mode-hook 'goto-address-mode) -(add-hook 'eshell-before-prompt-hook #'oni-eshell--set-xterm-variables) (add-hook 'esh-autosuggest-mode-hook #'oni-eshell-fix-esh-autosuggest-active-keymap) -- cgit v1.2.3-54-g00ecf