dotfiles

🎜 Clone'em, tweak'em, stick'em in your $HOME 🎝
git clone https://git.kevinlegouguec.net/dotfiles
Log | Files | Refs | README

commit 1969b132b7803fa1a7443ef89fc9555221125fee
parent ec4b87b34a5f180b3613abcc7714c6d8ceb36dd3
Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com>
Date:   Sun,  5 Feb 2023 15:54:57 +0100

Adjust shell-mode-hook

Leave font-lock faces alone; just unset shell-font-lock-keywords.

Diffstat:
M.emacs | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/.emacs b/.emacs @@ -430,12 +430,8 @@ (defun my/shell-hook () (setq truncate-lines nil) - (setq-local font-lock-comment-face 'default) - (setq-local font-lock-string-face 'default) (setq-local recenter-positions '(top middle bottom))) -(add-hook 'shell-mode-hook 'my/shell-hook) - (add-hook 'dired-mode-hook 'diff-hl-dired-mode-unless-remote) (add-to-list 'ibuffer-saved-filter-groups @@ -762,6 +758,11 @@ (show-paren-mode t) (show-paren-predicate t)) +(use-package shell + :config + (setq shell-font-lock-keywords nil) + (add-hook 'shell-mode-hook 'my/shell-hook)) + (use-package which-key :custom (which-key-idle-delay 0.5)