By default font-lock-variable-name-face
is defined as follows:
'(font-lock-variable-name-face ((t (:foreground "black" :weight bold))))
Would it be possible to change its color for different modes such as for shell-mode
:
I have tried the following, which did not have any effect:
(add-hook 'shell-mode-hook
(lambda ()
'(font-lock-variable-name-face ((t (:foreground "LightGoldenrod" :weight bold))))))
dracula-theme.el
is located under ~/.emacs.d/themes
: https://github.com/dracula/emacs/blob/master/dracula-theme.el
minimal.el:
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
(load-theme 'dracula t)
(defun my-shell-mode-faces ()
(face-remap-add-relative 'font-lock-variable-name-face '(:foreground "LightGoldenrod" :weight bold)))
(add-hook 'shell-mode-hook 'my-shell-mode-faces)