wombat-theme.el 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. ;;; wombat-theme.el --- Custom face theme for Emacs -*-coding: utf-8 -*-
  2. ;; Copyright (C) 2011-2012 Free Software Foundation, Inc.
  3. ;; Author: Kristoffer Grönlund <krig@koru.se>
  4. ;; This file is part of GNU Emacs.
  5. ;; GNU Emacs is free software: you can redistribute it and/or modify
  6. ;; it under the terms of the GNU General Public License as published by
  7. ;; the Free Software Foundation, either version 3 of the License, or
  8. ;; (at your option) any later version.
  9. ;; GNU Emacs is distributed in the hope that it will be useful,
  10. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;; GNU General Public License for more details.
  13. ;; You should have received a copy of the GNU General Public License
  14. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  15. ;;; Code:
  16. (deftheme wombat
  17. "Medium-contrast faces with a dark gray background.
  18. Adapted, with permission, from a Vim color scheme by Lars H. Nielsen.
  19. Basic, Font Lock, Isearch, Gnus, Message, and Ansi-Color faces
  20. are included.")
  21. (let ((class '((class color) (min-colors 89))))
  22. (custom-theme-set-faces
  23. 'wombat
  24. `(default ((,class (:background "#242424" :foreground "#f6f3e8"))))
  25. `(cursor ((,class (:background "#656565"))))
  26. ;; Highlighting faces
  27. `(fringe ((,class (:background "#303030"))))
  28. `(highlight ((,class (:background "#454545" :foreground "#ffffff"
  29. :underline t))))
  30. `(region ((,class (:background "#444444" :foreground "#f6f3e8"))))
  31. `(secondary-selection ((,class (:background "#333366" :foreground "#f6f3e8"))))
  32. `(isearch ((,class (:background "#343434" :foreground "#857b6f"))))
  33. `(lazy-highlight ((,class (:background "#384048" :foreground "#a0a8b0"))))
  34. ;; Mode line faces
  35. `(mode-line ((,class (:background "#444444" :foreground "#f6f3e8"))))
  36. `(mode-line-inactive ((,class (:background "#444444" :foreground "#857b6f"))))
  37. ;; Escape and prompt faces
  38. `(minibuffer-prompt ((,class (:foreground "#e5786d"))))
  39. `(escape-glyph ((,class (:foreground "#ddaa6f" :weight bold))))
  40. ;; Font lock faces
  41. `(font-lock-builtin-face ((,class (:foreground "#e5786d"))))
  42. `(font-lock-comment-face ((,class (:foreground "#99968b"))))
  43. `(font-lock-constant-face ((,class (:foreground "#e5786d"))))
  44. `(font-lock-function-name-face ((,class (:foreground "#cae682"))))
  45. `(font-lock-keyword-face ((,class (:foreground "#8ac6f2" :weight bold))))
  46. `(font-lock-string-face ((,class (:foreground "#95e454"))))
  47. `(font-lock-type-face ((,class (:foreground "#92a65e" :weight bold))))
  48. `(font-lock-variable-name-face ((,class (:foreground "#cae682"))))
  49. `(font-lock-warning-face ((,class (:foreground "#ccaa8f"))))
  50. ;; Button and link faces
  51. `(link ((,class (:foreground "#8ac6f2" :underline t))))
  52. `(link-visited ((,class (:foreground "#e5786d" :underline t))))
  53. `(button ((,class (:background "#333333" :foreground "#f6f3e8"))))
  54. `(header-line ((,class (:background "#303030" :foreground "#e7f6da"))))
  55. ;; Gnus faces
  56. `(gnus-group-news-1 ((,class (:weight bold :foreground "#95e454"))))
  57. `(gnus-group-news-1-low ((,class (:foreground "#95e454"))))
  58. `(gnus-group-news-2 ((,class (:weight bold :foreground "#cae682"))))
  59. `(gnus-group-news-2-low ((,class (:foreground "#cae682"))))
  60. `(gnus-group-news-3 ((,class (:weight bold :foreground "#ccaa8f"))))
  61. `(gnus-group-news-3-low ((,class (:foreground "#ccaa8f"))))
  62. `(gnus-group-news-4 ((,class (:weight bold :foreground "#99968b"))))
  63. `(gnus-group-news-4-low ((,class (:foreground "#99968b"))))
  64. `(gnus-group-news-5 ((,class (:weight bold :foreground "#cae682"))))
  65. `(gnus-group-news-5-low ((,class (:foreground "#cae682"))))
  66. `(gnus-group-news-low ((,class (:foreground "#99968b"))))
  67. `(gnus-group-mail-1 ((,class (:weight bold :foreground "#95e454"))))
  68. `(gnus-group-mail-1-low ((,class (:foreground "#95e454"))))
  69. `(gnus-group-mail-2 ((,class (:weight bold :foreground "#cae682"))))
  70. `(gnus-group-mail-2-low ((,class (:foreground "#cae682"))))
  71. `(gnus-group-mail-3 ((,class (:weight bold :foreground "#ccaa8f"))))
  72. `(gnus-group-mail-3-low ((,class (:foreground "#ccaa8f"))))
  73. `(gnus-group-mail-low ((,class (:foreground "#99968b"))))
  74. `(gnus-header-content ((,class (:foreground "#8ac6f2"))))
  75. `(gnus-header-from ((,class (:weight bold :foreground "#95e454"))))
  76. `(gnus-header-subject ((,class (:foreground "#cae682"))))
  77. `(gnus-header-name ((,class (:foreground "#8ac6f2"))))
  78. `(gnus-header-newsgroups ((,class (:foreground "#cae682"))))
  79. ;; Message faces
  80. `(message-header-name ((,class (:foreground "#8ac6f2" :weight bold))))
  81. `(message-header-cc ((,class (:foreground "#95e454"))))
  82. `(message-header-other ((,class (:foreground "#95e454"))))
  83. `(message-header-subject ((,class (:foreground "#cae682"))))
  84. `(message-header-to ((,class (:foreground "#cae682"))))
  85. `(message-cited-text ((,class (:foreground "#99968b"))))
  86. `(message-separator ((,class (:foreground "#e5786d" :weight bold))))))
  87. (custom-theme-set-variables
  88. 'wombat
  89. '(ansi-color-names-vector ["#242424" "#e5786d" "#95e454" "#cae682"
  90. "#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"]))
  91. (provide-theme 'wombat)
  92. ;; Local Variables:
  93. ;; no-byte-compile: t
  94. ;; End:
  95. ;;; wombat-theme.el ends here