How set colors for a specific mode?

后端 未结 1 1568
死守一世寂寞
死守一世寂寞 2021-01-25 00:34

I\'m trying Emacs. I would like to set colors for Eshell. I tried that first with set-foreground-color. But it affects my other modes too.

  (add-hook \'eshell-m         


        
相关标签:
1条回答
  • 2021-01-25 01:15

    Here is a link to the documentation regarding remapping faces: http://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Remapping.html

    (defun my-eshell-mode-faces ()
      (face-remap-add-relative 'default '(:foreground "#BD8700")))
    
    (add-hook 'eshell-mode-hook 'my-eshell-mode-faces)
    
    0 讨论(0)
提交回复
热议问题