I like to see if there is a way to change the base color area of ββthe mode and background in the main mode,
I thought to add logic to
(add-hook 'after-change-major-mode-hook
But I have no experience with emacs lisp to make such a change. Here is the logic:
switch major-mode: case "emacs-lisp-mode": (set-face-foreground 'mode-line "ivory") (set-face-background 'mode-line "DarkOrange2") case "ruby-mode": (set-face-foreground 'mode-line "white") (set-face-background 'mode-line "red") ... default: (set-face-foreground 'mode-line "black") (set-face-background 'mode-line "white") end switch
Thank you very much in advance!
source share