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.

94 lines
4.2 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. ;; Wilson: A theme based upon a dirty spitfire
  14. ;;
  15. ;; -------------------------------------------------------
  16. (unless (>= emacs-major-version 24)
  17. (error "requires Emacs 24 or later."))
  18. (deftheme wilson
  19. "A theme based upon a dirty spitfire")
  20. (let ((wilson-oilstained-eggshell "#6C6B59")
  21. (wilson-flying-boots "#44443C")
  22. (wilson-darker-flying-boots "#222222")
  23. (wilson-spring-grass "#9BA657")
  24. (wilson-stained-white "#BEBFB7")
  25. (wilson-darker-stained-white "#A9AAA3")
  26. (wilson-gray "#84857E")
  27. (wilson-darker-gray "gray30")
  28. (wilson-dark-gray "gray25")
  29. (wilson-light-gray "gray20")
  30. (wilson-lighter-gray "gray12")
  31. (wilson-stained-orange "#B97E56")
  32. (wilson-darker-stained-orange "#A56F4B")
  33. (wilson-stained-yellow "#CFB980")
  34. (wilson-darker-stained-yellow "#B9A572"))
  35. (custom-theme-set-faces
  36. 'wilson
  37. ;; ----------------- Frame stuff --------------------
  38. `(default ((t (:background ,wilson-darker-flying-boots :foreground ,wilson-stained-white))))
  39. `(cursor ((t (:background ,wilson-stained-white))))
  40. `(hl-line ((t (:background ,wilson-flying-boots))))
  41. `(modeline ((t (:background ,wilson-stained-yellow :foreground ,wilson-flying-boots))))
  42. `(mode-line-inactive ((t (:box nil :background ,wilson-light-gray :foreground ,wilson-stained-yellow))))
  43. `(mode-line ((t (:box nil :foreground ,wilson-flying-boots :background ,wilson-stained-yellow))))
  44. `(fringe ((t (:background ,wilson-darker-flying-boots))))
  45. ;; Dir-ed search prompt
  46. `(minibuffer-prompt ((default (:foreground ,wilson-stained-orange))))
  47. `(linum ((t (:background, wilson-darker-flying-boots :foreground, wilson-stained-white))))
  48. ;; Highlight region color
  49. `(region ((t (:foreground ,wilson-darker-stained-white :background ,wilson-flying-boots))))
  50. ;; ---------------- Code Highlighting ---------------
  51. ;; Builtin
  52. `(font-lock-builtin-face ((t (:foreground ,wilson-darker-stained-yellow))))
  53. ;; Constants
  54. `(font-lock-constant-face ((t (:foreground ,wilson-stained-orange))))
  55. ;; Comments
  56. `(font-lock-comment-face ((t (:foreground ,wilson-oilstained-eggshell))))
  57. ;; Function names
  58. `(font-lock-function-name-face ((t (:foreground ,wilson-stained-yellow))))
  59. ;; Keywords
  60. `(font-lock-keyword-face ((t (:foreground ,wilson-spring-grass))))
  61. ;; Strings
  62. `(font-lock-string-face ((t (:foreground ,wilson-gray))))
  63. ;; Variables
  64. `(font-lock-variable-name-face ((t (:foreground ,wilson-stained-yellow))))
  65. `(font-lock-type-face ((t (:foreground ,wilson-darker-stained-orange))))
  66. `(font-lock-warning-face ((t (:foreground ,wilson-darker-stained-orange :bold t))))
  67. ;; ---------------- Package Specific Stuff -----------
  68. ;; Powerline
  69. `(powerline-active1 ((t (:background ,wilson-dark-gray :foreground ,wilson-stained-orange))))
  70. `(powerline-active2 ((t (:background ,wilson-lighter-gray :foreground ,wilson-darker-stained-white))))
  71. `(powerline-inactive1 ((t (:background ,wilson-darker-gray :foreground ,wilson-stained-white))))
  72. `(powerline-inactive2 ((t (:background ,wilson-dark-gray :foreground ,wilson-darker-stained-white))))))
  73. ;;;###autoload
  74. (when load-file-name
  75. (add-to-list 'custom-theme-load-path
  76. (file-name-as-directory (file-name-directory load-file-name)))
  77. (when (not window-system)
  78. (custom-set-faces '(default ((t (:background nil)))))))
  79. (provide-theme 'wilson)
  80. ;; Local Variables:
  81. ;; no-byte-compile: t
  82. ;; End: