Skip to content

Commit

Permalink
Inherit faces from appropriate builtin ones (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirikid authored and Trevoke committed Aug 31, 2019
1 parent 694d133 commit f101c67
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions elixir-mode.el
Expand Up @@ -78,21 +78,13 @@

(defvar elixir-attribute-face 'elixir-attribute-face)
(defface elixir-attribute-face
'((((class color) (min-colors 88) (background light))
:foreground "MediumPurple4")
(((class color) (background dark))
(:foreground "thistle"))
(t nil))
'((t (:inherit font-lock-preprocessor-face)))
"For use with module attribute tokens."
:group 'font-lock-faces)

(defvar elixir-atom-face 'elixir-atom-face)
(defface elixir-atom-face
'((((class color) (min-colors 88) (background light))
:foreground "RoyalBlue4")
(((class color) (background dark))
(:foreground "light sky blue"))
(t nil))
'((t (:inherit font-lock-builtin-face)))
"For use with atoms & map keys."
:group 'font-lock-faces)

Expand Down

0 comments on commit f101c67

Please sign in to comment.