You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
4.5 KiB

  1. ;; This program is free software; you can redistribute it and/or modify
  2. ;; it under the terms of the GNU General Public License as published by
  3. ;; the Free Software Foundation, either version 3 of the License, or
  4. ;; (at your option) any later version.
  5. ;; This program is distributed in the hope that it will be useful,
  6. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. ;; GNU General Public License for more details.
  9. ;; You should have received a copy of the GNU General Public License
  10. ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
  11. ;; ---------------------------
  12. ;;
  13. ;; Graham: A dark color theme
  14. ;;
  15. ;; ----------------------------
  16. (unless (>= emacs-major-version 24)
  17. (error "requires Emacs 24 or later."))
  18. (deftheme graham "A dark color theme for Emacs")
  19. (let ((*background* "#161A1F")
  20. (*comments* "#615953")
  21. (*constant* "#F38630")
  22. (*current-line* "#151515")
  23. (*cursor-underscore* "#FFFAAA")
  24. (*keywords* "#FFA927")
  25. (*line-number* "#061A1F")
  26. (*method-declaration* "#FFD2A7")
  27. (*mode-line-bg* "#CCCCCC")
  28. (*mode-inactive-bg* "#222")
  29. (*mode-line-fg* "#333333")
  30. (*mode-inactive-fg* "#FFF")
  31. (*normal* "#DEDEDE")
  32. (*number* "#FC580C")
  33. (*operators* "#F38630")
  34. (*warning* "#FF6C60")
  35. (*regexp* "#E9C")
  36. (*string* "#615953")
  37. (*variable* "#C6C5FE")
  38. (*visual-selection* "#1D1F21"))
  39. (custom-theme-set-faces
  40. 'graham
  41. `(bold ((t (:bold t))))
  42. `(button ((t (:foreground, *keywords* :underline t))))
  43. `(default ((t (:background, *background* :foreground, *normal*))))
  44. `(header-line ((t (:background, *mode-line-bg* :foreground, *normal*)))) ;; info header
  45. `(highlight ((t (:background, *current-line*))))
  46. `(highlight-face ((t (:background, *current-line*))))
  47. `(hl-line ((t (:background, *current-line* :underline t))))
  48. `(info-xref ((t (:foreground, *keywords* :underline t))))
  49. `(region ((t (:background, *visual-selection*))))
  50. `(underline ((nil (:underline t))))
  51. ;; font-lock
  52. `(font-lock-builtin-face ((t (:foreground, *operators*))))
  53. `(font-lock-comment-delimiter-face ((t (:foreground, *comments*))))
  54. `(font-lock-comment-face ((t (:foreground, *comments*))))
  55. `(font-lock-constant-face ((t (:foreground, *constant*))))
  56. `(font-lock-doc-face ((t (:foreground, *string*))))
  57. `(font-lock-doc-string-face ((t (:foreground, *string*))))
  58. `(font-lock-function-name-face ((t (:foreground, *method-declaration*))))
  59. `(font-lock-keyword-face ((t (:foreground, *keywords*))))
  60. `(font-lock-negation-char-face ((t (:foreground, *warning*))))
  61. `(font-lock-number-face ((t (:foreground, *number*))))
  62. `(font-lock-preprocessor-face ((t (:foreground, *keywords*))))
  63. `(font-lock-reference-face ((t (:foreground, *constant*))))
  64. `(font-lock-regexp-grouping-backslash ((t (:foreground, *regexp*))))
  65. `(font-lock-regexp-grouping-construct ((t (:foreground, *regexp*))))
  66. `(font-lock-string-face ((t (:foreground, *string*))))
  67. `(font-lock-type-face ((t (:foreground, *operators*))))
  68. `(font-lock-variable-name-face ((t (:foreground, *variable*))))
  69. `(font-lock-warning-face ((t (:foreground, *warning*))))
  70. ;; GUI
  71. `(fringe ((t (:background, *background*))))
  72. `(linum ((t (:background, *line-number*))))
  73. `(minibuffer-prompt ((t (:foreground, *variable*))))
  74. `(mode-line ((t (:background, *mode-line-bg* :foreground, *mode-line-fg*))))
  75. `(mode-line-inactive ((t (:background, *mode-inactive-bg* :foreground, *mode-inactive-fg*))))
  76. `(cursor ((t (:background, *cursor-underscore*))))
  77. `(text-cursor ((t (:background, *cursor-underscore*))))
  78. `(vertical-border ((t (:foreground, *background*)))) ;; between splits
  79. ;; show-paren
  80. `(show-paren-mismatch ((t (:background, *warning* :foreground, *normal* :weight bold))))
  81. `(show-paren-match ((t (:background, *keywords* :foreground, *normal* :weight bold))))
  82. ;; search
  83. `(isearch ((t (:background, *regexp* :foreground, *visual-selection*))))
  84. `(isearch-fail ((t (:background, *warning*))))
  85. `(lazy-highlight ((t (:background, *operators* :foreground, *visual-selection*))))
  86. ))
  87. ;;;###autoload
  88. (when (and (boundp 'custom-theme-load-path) load-file-name)
  89. (add-to-list 'custom-theme-load-path
  90. (file-name-as-directory (file-name-directory load-file-name))))
  91. (provide-theme 'graham)
  92. ;; Local Variables:
  93. ;; no-byte-compile: t
  94. ;; End: