emacsemacs-faces

In Emacs, how do I create for a certain color constant to be mapped to another color?


I use Emacs native Win 32, but run it in DOS Prompt using emacs -nw. I love it. But, I can not easily read the blue color for a face foreground. And now I like to mapped all blue color, to be lightblue.

Is there some sort of alias like this?

Thanks.


Solution

  • I think you should start with a Color theme package and choose a color theme you like.

    Later you can adjust certain colors by doing M-x customize-face. The command M-x list-colors-display will help you to pick a right color.

    EDIT: Do you run Emacs on text terminal? Then you may try to use tty-color-define. Unfortunately I cannot test it because I don't have Emacs on the terminal.

    (defun my-define-red()
      (interactive)
      (tty-color-define "red" 1 (list 32000 12000 12000)))