noctilux-theme icon indicating copy to clipboard operation
noctilux-theme copied to clipboard

Comments Are Wrong Color For Emacsclient

Open creese opened this issue 11 years ago • 2 comments

Here is a comparison between Light Table and noctilux-theme in emacsclient. By tweaking the colors, we get very close. But there are few problems with syntax highlighting.

Here is a code snippet from Light Table. Here, comments are blue, variable names are white. screen shot 2013-11-29 at 2 21 23 pm

In emacs, comments are gray. Variable names are blue. screen shot 2013-11-29 at 2 33 18 pm

In emacsclient, comments are bright green. (Variable names are still blue.) screen shot 2013-11-29 at 2 21 34 pm

Any ideas on how to fix?

creese avatar Nov 29 '13 22:11 creese

Hm, that's a little bit strange. Honestly I sort of like the comments in gray over the blue used in Light Table, but the emacsclient thing is a different issue altogether, and I think it's related to issue #3. Could you try the gist in the comments on that issue and see how you go?

sjrmanning avatar Dec 02 '13 07:12 sjrmanning

I was able to fix by adding the following to my init.

(set-face-foreground 'font-lock-variable-name-face "foreground")
(set-face-foreground 'flymake-errline "brightred")
(set-face-foreground 'font-lock-comment-face "blue")
(set-face-foreground 'font-lock-comment-delimiter-face "blue")
(set-face-foreground 'isearch "brightcyan")
(set-face-foreground 'font-lock-keyword-face "green")
(set-face-foreground 'font-lock-constant-face "yellow")
(set-face-foreground 'font-lock-type-face "yellow")
(set-face-foreground 'font-lock-string-face "cyan")
(set-face-foreground 'font-lock-function-name-face "brightblue")
(set-face-foreground 'font-lock-builtin-face "foreground")
(set-face-foreground 'minibuffer-prompt "foreground")

I tweaked the colors a bit. You can find them in my itermcolors file: https://github.com/creese/dotfiles/blob/master/Light%20Table.itermcolors

creese avatar Dec 02 '13 18:12 creese