https://github.com/whitlockjc/atom-dark-theme-emacs.git
git clone 'git://github.com/whitlockjc/atom-dark-theme-emacs.git'
This is a port of the Atom Dark theme from Atom.io. For comparision, please view the following:
First, this is a work in progress. I am not an Emacs guru nor do I use all of the Emacs features/modes/etc. This theme attempts to give an Atom feel throughtout all of Emacs but seeing as I do not use all of Emacs, there are bound to be bugs. The following are supported:
M-x package-install
RET atom-dark-theme
.
Download atom-dark-theme.el
to the directory ~/.emacs.d/themes/
. Add this to your
.emacs
:
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
You can load the theme now with:
M-x load-theme RET atom-dark
To make it the default theme add to your .emacs
file:
(load-theme 'atom-dark t)
atom-dark-theme
uses Face Remapping to
better support theming of modes that do not provide their own theme faces. (Example: html-mode, yaml-mode, etc.)
Whenever a mode like this is encountered, face remapping is used to alter the theme faces for the current buffer. For
example, in yaml-mode
YAML nodes used the font-lock-variable-name-face
which as part of this theme renders as
#c5c8c6
(inherits from default
) but to better match Atom Dark Theme in Atom.io it makes sense for
font-lock-variable-name-face
to inherit from font-lock-keyword-face
so that it renders #96CBFE
.
For some, performing this customization could be confusing/annoying since in one mode a keyword might render one way and
in another mode it could render another way. So to turn this off globally, just set the
atom-dark-theme-force-faces-for-mode
variable to anything but t
. Here is an example:
(setq atom-dark-theme-force-faces-for-mode nil)
To keep this page from loading slowly, screenshots have their own page:
https://github.com/whitlockjc/atom-dark-theme-emacs/tree/master/screenshots/README.md