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.

98 lines
3.9 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. ;; Dorsey: A dark grunge color theme
  14. ;;
  15. ;; ----------------------------
  16. (unless (>= emacs-major-version 24)
  17. (error "requires Emacs 24 or later."))
  18. (deftheme dorsey
  19. "A dark grunge color theme")
  20. (custom-theme-set-variables
  21. 'dorsey
  22. '(linum-format " %7i "))
  23. (let ((dorsey-background "#252727")
  24. (dorsey-darker-background "#212121")
  25. (dorsey-rich-black "#161A1F")
  26. (dorsey-mid-gray "#666666")
  27. (dorsey-light-gray "#999999")
  28. (dorsey-foreground "#FFFFFF")
  29. (dorsey-light-blue "#9FB3C2")
  30. (dorsey-bluegray "#4F5A63")
  31. (dorsey-blue-green "#8AB8A2")
  32. (dorsey-yellow "#C7AF3F")
  33. (dorsey-light-yellow "#FFE792")
  34. (dorsey-yellow-white "#FAFFDB")
  35. (*mode-line-bg* "#CCCCCC")
  36. (*mode-inactive-bg* "#222")
  37. (*mode-line-fg* "#333333")
  38. (*mode-inactive-fg* "#FFF"))
  39. (custom-theme-set-faces
  40. 'dorsey
  41. ;; ----------------- Frame stuff --------------------
  42. `(default ((t (:background ,dorsey-darker-background :foreground ,dorsey-foreground))))
  43. `(cursor ((t (:background ,dorsey-foreground))))
  44. `(hl-line ((t (:background ,dorsey-darker-background))))
  45. `(mode-line ((t (:background, *mode-line-bg* :foreground, *mode-line-fg*))))
  46. `(mode-line-inactive ((t (:background, *mode-inactive-bg* :foreground, *mode-inactive-fg*))))
  47. `(mode-line ((t (:box nil :foreground ,dorsey-mid-gray :background ,dorsey-foreground))))
  48. `(fringe ((t (:background ,dorsey-darker-background))))
  49. ;; Dir-ed search prompt
  50. `(minibuffer-prompt ((default (:foreground ,dorsey-foreground))))
  51. ;; Highlight region color
  52. `(region ((t (:foreground ,dorsey-light-yellow :background ,dorsey-rich-black))))
  53. ;; ---------------- Code Highlighting ---------------
  54. ;; Builtin
  55. `(font-lock-builtin-face ((t (:foreground ,dorsey-yellow))))
  56. ;; Constants
  57. `(font-lock-constant-face ((t (:foreground ,dorsey-light-gray))))
  58. ;; Comments
  59. `(font-lock-comment-face ((t (:foreground ,dorsey-bluegray))))
  60. ;; Function names
  61. `(font-lock-function-name-face ((t (:foreground ,dorsey-yellow))))
  62. ;; Keywords
  63. `(font-lock-keyword-face ((t (:foreground ,dorsey-light-blue))))
  64. ;; Strings
  65. `(font-lock-string-face ((t (:foreground ,dorsey-yellow-white))))
  66. ;; Variables
  67. `(font-lock-variable-name-face ((t (:foreground ,dorsey-blue-green))))
  68. `(font-lock-type-face ((t (:foreground ,dorsey-foreground))))
  69. `(font-lock-warning-face ((t (:foreground ,dorsey-foreground :bold t))))
  70. ;; ---------------- Package Specific Stuff -----------
  71. ;; Powerline
  72. `(powerline-active1 ((t (:background "gray30" :foreground ,dorsey-rich-black))))
  73. `(powerline-active2 ((t (:background "gray35" :foreground ,dorsey-rich-black))))
  74. `(powerline-inactive1 ((t (:background "gray10" :foreground ,dorsey-mid-gray))))
  75. `(powerline-inactive2 ((t (:background "gray15" :foreground ,dorsey-mid-gray))))))
  76. ;;;###autoload
  77. (when load-file-name
  78. (add-to-list 'custom-theme-load-path
  79. (file-name-as-directory (file-name-directory load-file-name)))
  80. (when (not window-system)
  81. (custom-set-faces '(default ((t (:background nil)))))))
  82. (provide-theme 'dorsey)
  83. ;; Local Variables:
  84. ;; no-byte-compile: t
  85. ;; End: