color-theme-dark-emacs

How it started

I recently made an emacs theme with dark looks, thought it would be good to share with others. I love the look and feel of emacs when run inside the terminal. So I was looking for a way to get a dark look for my emacs when I was using the gui. A helpful emacswiki user (ZWZ) pointed me to a theme he had worked on, so I started off from there.

Mostly I wanted a theme that would make the transition from the terminal to gui seem seamless.

How to use?

Just install color-theme from http://www.nongnu.org/color-theme/. And go ahead and grab dark-emacs from my github repo. Put it in, say ~/.emacs.d/, and call it from your init file (e.g. ~/.emacs) like this,

;; colour themes using color-theme.el
(load-file "~/.emacs.d/color-theme-dark-emacs.el")

Dark Emacs was made for the gui, so it doesn’t quite look good in the terminal. So you might want to call it with something like this,

(eval-after-load "color-theme"
  (progn
    (setq color-theme-is-global nil)
    (when (window-system) ; needed for the first frame
      (color-theme-dark-emacs)
      )))

(add-hook 'after-make-frame-functions
          '(lambda (f)
             (with-selected-frame f
               (if (window-system f)
                   (color-theme-dark-emacs)
                 ))))

Have fun and save energy by keeping it dark. 😉

Screenshots

Here are some screenshots with the theme for some commonly used Emacs modes to give you some idea.

Viewing my ~/.bashrc

The awesomeness that is org-mode

Every Emacs user's bread and butter

Viewing a C++ header file

Completions in eshell

Reading a blogpost about theming on emacs-fu.blogspot.com

Info dir node showing visited links

Org-mode special

If you want the cool keyword/tag fontification in org-mode, you might want to use something like the following;

;; TODO keyword faces
(setq org-todo-keyword-faces
      '(("PBUG" . (:background "gold" :foreground "indianred3" :weight bold))
	("CBUG" . (:background "gold" :foreground "indianred3" :weight bold))
	("SEGF" . (:background "gold" :foreground "indianred3" :weight bold))
	("CNCL" . (:background "snow3" :foreground "black" :weight bold))
	))

;; TAG faces
(setq org-tag-faces
      '(("PROJ" :background "indianred3" :foreground "cornsilk2" :weight bold)
	))
Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: