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.

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