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.

121 lines
4.8 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. ;; Spolsky : A dark color theme
  14. ;;
  15. ;; ----------------------------
  16. (unless (>= emacs-major-version 24)
  17. (error "requires Emacs 24 or later."))
  18. (deftheme spolsky "A dark color theme for Emacs based on Sublime Text 2")
  19. (custom-theme-set-variables
  20. 'spolsky
  21. '(linum-format " %7i "))
  22. (let ((*background* "#161A1F")
  23. (*comments* "#8C8C8C")
  24. (*constant* "#FF80F4")
  25. (*current-line* "#151515")
  26. (*cursor-underscore* "#EEDC82")
  27. (*keywords* "#F92672")
  28. ;; Sidebar line numbers
  29. (*line-number* "#161A1F")
  30. (*line-fg* "#666")
  31. (*type-face* "#66D9EF")
  32. (*method-declaration* "#A6E22E")
  33. (*mode-line-bg* "#333")
  34. (*mode-inactive-bg* "#222")
  35. (*mode-line-fg* "#EEDC82")
  36. (*mode-inactive-fg* "#555")
  37. (*normal* "#DEDEDE")
  38. (*number* "#FC580C")
  39. (*operators* "#FF80F4")
  40. (*warning* "#FF6C60")
  41. (*regexp* "#A63A62")
  42. (*string* "#EEDC82")
  43. (*variable* "#FD971F")
  44. (*visual-selection* "#555"))
  45. (custom-theme-set-faces
  46. 'spolsky
  47. `(bold ((t (:bold t))))
  48. `(button ((t (:foreground, *keywords* :underline t))))
  49. `(default ((t (:background, *background* :foreground, *normal*))))
  50. `(header-line ((t (:background, *mode-line-bg* :foreground, *normal*)))) ;; info header
  51. `(highlight ((t (:background, *current-line*))))
  52. `(highlight-face ((t (:background, *current-line*))))
  53. `(hl-line ((t (:background, *current-line* :underline t))))
  54. `(info-xref ((t (:foreground, *keywords* :underline t))))
  55. `(region ((t (:background, *visual-selection*))))
  56. `(underline ((nil (:underline t))))
  57. ;; font-lock
  58. `(font-lock-builtin-face ((t (:foreground, *operators*))))
  59. `(font-lock-comment-delimiter-face ((t (:foreground, *comments*))))
  60. `(font-lock-comment-face ((t (:foreground, *comments*))))
  61. `(font-lock-constant-face ((t (:foreground, *constant*))))
  62. `(font-lock-doc-face ((t (:foreground, *string*))))
  63. `(font-lock-doc-string-face ((t (:foreground, *string*))))
  64. `(font-lock-function-name-face ((t (:foreground, *method-declaration*))))
  65. `(font-lock-keyword-face ((t (:foreground, *keywords*))))
  66. `(font-lock-negation-char-face ((t (:foreground, *warning*))))
  67. `(font-lock-number-face ((t (:foreground, *number*))))
  68. `(font-lock-preprocessor-face ((t (:foreground, *keywords*))))
  69. `(font-lock-reference-face ((t (:foreground, *constant*))))
  70. `(font-lock-regexp-grouping-backslash ((t (:foreground, *regexp*))))
  71. `(font-lock-regexp-grouping-construct ((t (:foreground, *regexp*))))
  72. `(font-lock-string-face ((t (:foreground, *string*))))
  73. `(font-lock-type-face ((t (:foreground, *type-face*))))
  74. `(font-lock-variable-name-face ((t (:foreground, *variable*))))
  75. `(font-lock-warning-face ((t (:foreground, *warning*))))
  76. ;; GUI
  77. `(fringe ((t (:background, *background*))))
  78. `(linum ((t (:background, *line-number* :foreground, *line-fg*))))
  79. `(minibuffer-prompt ((t (:foreground, *variable*))))
  80. `(mode-line ((t (:background, *mode-line-bg* :foreground, *mode-line-fg*))))
  81. `(mode-line-inactive ((t (:background, *mode-inactive-bg* :foreground, *mode-inactive-fg*))))
  82. `(cursor ((t (:background, *cursor-underscore*))))
  83. `(text-cursor ((t (:background, *cursor-underscore*))))
  84. `(vertical-border ((t (:foreground, *background*)))) ;; between splits
  85. ;; show-paren
  86. `(show-paren-mismatch ((t (:background, *warning* :foreground, *normal* :weight bold))))
  87. `(show-paren-match ((t (:background, *keywords* :foreground, *normal* :weight bold))))
  88. ;; search
  89. `(isearch ((t (:background, *regexp* :foreground, *visual-selection*))))
  90. `(isearch-fail ((t (:background, *warning*))))
  91. `(lazy-highlight ((t (:background, *operators* :foreground, *visual-selection*))))
  92. ))
  93. ;;;###autoload
  94. (when (and (boundp 'custom-theme-load-path) load-file-name)
  95. (add-to-list 'custom-theme-load-path
  96. (file-name-as-directory (file-name-directory load-file-name))))
  97. (provide-theme 'spolsky)
  98. ;; Local Variables:
  99. ;; no-byte-compile: t
  100. ;; End: