summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2023-02-05 15:54:57 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2023-02-12 10:26:12 +0100
commit1969b132b7803fa1a7443ef89fc9555221125fee (patch)
treeab9049e5ca592b117586c106fdf826939daa50ad
parentec4b87b34a5f180b3613abcc7714c6d8ceb36dd3 (diff)
downloaddotfiles-1969b132b7803fa1a7443ef89fc9555221125fee.tar.xz
Adjust shell-mode-hook
Leave font-lock faces alone; just unset shell-font-lock-keywords.
-rw-r--r--.emacs9
1 files changed, 5 insertions, 4 deletions
diff --git a/.emacs b/.emacs
index 68638ce..9cb1fde 100644
--- 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)