Skip to content

Instantly share code, notes, and snippets.

@jasonm23
Created January 14, 2013 23:56
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonm23/4534688 to your computer and use it in GitHub Desktop.
Save jasonm23/4534688 to your computer and use it in GitHub Desktop.
A very basic Emacs 24 deftheme template, just to show the main blocks to use.
;;; Filename: name-theme.el
(deftheme name
"DOCSTRING")
;; Not a bad idea to define a palette...
(let (
(color-1 "#ffffff")
(color-2 "#ff0000")
(color-3 "#00ff00")
(color-4 "#0000ff"))
;; Set faces
(custom-theme-set-faces
'name ;; you must use the same theme name here...
'(default ((t (:foreground ,color-1 :background black))))
'(cursor ((t (:background ,color-4))))
'(fringe ((t (:background ,color-3))))
;;; etc...
;;; don't use these settings of course,
;;; they're horrible.
)
;; Set variables
(custom-theme-set-variables
'name ;; again specify the same theme name...
'(any-variable EXPR)
(provide-theme 'name)
;;; name-theme.el ends here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment