Personal emacs config
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.

49 lines
1.8 KiB

  1. ;;; smart-mode-line-respectful-theme.el --- Respectful theme for smart-mode-line
  2. ;; Copyright (C) 2014 Artur Malabarba <bruce.connor.am@gmail.com>
  3. ;; Author: Artur Malabarba <bruce.connor.am@gmail.com>
  4. ;; URL: http://github.com/Bruce-Connor/smart-mode-line
  5. ;; Separator: -
  6. ;;; License:
  7. ;;
  8. ;; This file is NOT part of GNU Emacs.
  9. ;;
  10. ;; This program is free software; you can redistribute it and/or
  11. ;; modify it under the terms of the GNU General Public License
  12. ;; as published by the Free Software Foundation; either version 2
  13. ;; of the License, or (at your option) any later version.
  14. ;;
  15. ;; This program is distributed in the hope that it will be useful,
  16. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. ;; GNU General Public License for more details.
  19. ;;
  20. ;;; Change Log:
  21. ;; 0.1a - 2014/05/14 - Created File.
  22. ;;; Code:
  23. (deftheme smart-mode-line-respectful
  24. "Respectful theme for smart-mode-line.
  25. Tries to respect the colors chosen by your global theme.
  26. Results may vary.")
  27. (custom-theme-set-faces
  28. 'smart-mode-line-respectful
  29. '(mode-line-inactive ((t :inverse-video nil)))
  30. '(mode-line ((t :inverse-video nil)))
  31. '(sml/global ((t :inherit font-lock-preprocessor-face)))
  32. '(sml/filename ((t :inherit mode-line-buffer-id)))
  33. '(sml/prefix ((t :inherit (font-lock-variable-name-face sml/global))))
  34. '(sml/read-only ((t :inherit (font-lock-type-face sml/not-modified))))
  35. '(sml/modes ((t :foreground nil :inherit sml/filename :weight normal))))
  36. ;;;###autoload
  37. (when load-file-name
  38. (add-to-list 'custom-theme-load-path
  39. (file-name-as-directory (file-name-directory load-file-name))))
  40. (provide-theme 'smart-mode-line-respectful)
  41. ;;; smart-mode-line-respectful-theme.el ends here.