hvesalai / emacs-scala-mode

The definitive scala-mode for emacs
http://ensime.org
GNU General Public License v3.0
361 stars 68 forks source link

custom font faces ignored #81

Closed fommil closed 10 years ago

fommil commented 10 years ago

I have this in my .emacs

(custom-set-faces
 '(scala-font-lock:val-face ((t (:inherit 'font-lock-variable-name-face :foreground "#9876aa"))))
 '(scala-font-lock:var-face ((t (:inherit 'scala-font-lock:val-face :underline (:style wave :color "yellow"))))))

I don't think I ever see the val-face actually used (I mean when I inpect elementsn with C-u C-x =), but certainly when I write a var the inheritance from the val-face seems to be ignored: I see the squiggly but not the purple text.

Am I doing something wrong or is this some subtle scala-mode2 bug?

(ENSIME is turned off at this point, but I'm seeing the problem persist when ENSIME's semantic highlighting extends from these font faces)

hvesalai commented 10 years ago

There's a simple reason: there is no scala-font-lock:val-face. Instead you must customize font-lock-variable-name-face

fommil commented 10 years ago

doh!