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.

114 lines
4.6 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. ;; Oderskey: A dark color theme
  14. ;;
  15. ;; ----------------------------
  16. (unless (>= emacs-major-version 24)
  17. (error "requires Emacs 24 or later."))
  18. (deftheme odersky "A dark color theme for Emacs")
  19. (let ((*background* "#1E2326")
  20. (*vborder* "#FF7E00")
  21. (*gutter* "#3E3E3E")
  22. (*comments* "#999999")
  23. (*constant* "#F38630")
  24. (*current-line* "#151515")
  25. (*cursor-underscore* "#FFFAAA")
  26. (*keywords* "#A7DBD8")
  27. (*line-number* "#1E2326")
  28. (*method-declaration* "#FFD2A7")
  29. (*mode-line-bg* "#505C63")
  30. (*mode-line-fg* "#E0E4CC")
  31. (*mode-inactive-bg* "#2E3336")
  32. (*mode-inactive-fg* "#F8F8F2")
  33. (*normal* "#DEDEDE")
  34. (*number* "#2EBF7E")
  35. (*operators* "#69D2E7")
  36. (*warning* "#FA6900")
  37. (*regexp* "#FA6900")
  38. (*string* "#E0E4CC")
  39. (*variable* "#FA6900")
  40. (*visual-selection* "#505C63"))
  41. (custom-theme-set-faces
  42. 'odersky
  43. `(bold ((t (:bold t))))
  44. `(button ((t (:foreground, *keywords* :underline t))))
  45. `(default ((t (:background, *background* :foreground, *normal*))))
  46. `(header-line ((t (:background, *mode-line-bg* :foreground, *normal*)))) ;; info header
  47. `(highlight ((t (:background, *current-line*))))
  48. `(highlight-face ((t (:background, *current-line*))))
  49. `(hl-line ((t (:background, *current-line* :underline t))))
  50. `(info-xref ((t (:foreground, *keywords* :underline t))))
  51. `(region ((t (:background, *visual-selection*))))
  52. `(underline ((nil (:underline t))))
  53. ;; font-lock
  54. `(font-lock-builtin-face ((t (:foreground, *operators*))))
  55. `(font-lock-comment-delimiter-face ((t (:foreground, *comments*))))
  56. `(font-lock-comment-face ((t (:foreground, *comments*))))
  57. `(font-lock-constant-face ((t (:foreground, *constant*))))
  58. `(font-lock-doc-face ((t (:foreground, *string*))))
  59. `(font-lock-doc-string-face ((t (:foreground, *string*))))
  60. `(font-lock-function-name-face ((t (:foreground, *method-declaration*))))
  61. `(font-lock-keyword-face ((t (:foreground, *keywords*))))
  62. `(font-lock-negation-char-face ((t (:foreground, *warning*))))
  63. `(font-lock-number-face ((t (:foreground, *number*))))
  64. `(font-lock-preprocessor-face ((t (:foreground, *keywords*))))
  65. `(font-lock-reference-face ((t (:foreground, *constant*))))
  66. `(font-lock-regexp-grouping-backslash ((t (:foreground, *regexp*))))
  67. `(font-lock-regexp-grouping-construct ((t (:foreground, *regexp*))))
  68. `(font-lock-string-face ((t (:foreground, *string*))))
  69. `(font-lock-type-face ((t (:foreground, *operators*))))
  70. `(font-lock-variable-name-face ((t (:foreground, *variable*))))
  71. `(font-lock-warning-face ((t (:foreground, *warning*))))
  72. ;; GUI
  73. `(fringe ((t (:background, *gutter*))))
  74. `(linum ((t (:background, *line-number*))))
  75. `(minibuffer-prompt ((t (:foreground, *variable*))))
  76. `(mode-line ((t (:background, *mode-line-bg* :foreground, *mode-line-fg*))))
  77. `(mode-line-inactive ((t (:background, *mode-inactive-bg* :foreground, *mode-inactive-fg*))))
  78. `(cursor ((t (:background, *cursor-underscore*))))
  79. `(text-cursor ((t (:background, *cursor-underscore*))))
  80. `(vertical-border ((t (:foreground, *vborder*)))) ;; between splits
  81. ;; show-paren
  82. `(show-paren-mismatch ((t (:background, *warning* :foreground, *normal* :weight bold))))
  83. `(show-paren-match ((t (:background, *keywords* :foreground, *normal* :weight bold))))
  84. ;; search
  85. `(isearch ((t (:background, *regexp* :foreground, *visual-selection*))))
  86. `(isearch-fail ((t (:background, *warning*))))
  87. `(lazy-highlight ((t (:background, *operators* :foreground, *visual-selection*))))
  88. ))
  89. ;;;###autoload
  90. (when (and (boundp 'custom-theme-load-path) load-file-name)
  91. (add-to-list 'custom-theme-load-path
  92. (file-name-as-directory (file-name-directory load-file-name))))
  93. (provide-theme 'odersky)
  94. ;; Local Variables:
  95. ;; no-byte-compile: t
  96. ;; End: