aboutsummaryrefslogtreecommitdiff
path: root/home/.emacs.d/themes/emacs-color-theme-solarized/color-theme-solarized.el
blob: 298ae944b93dcec87e06e8c3bdd46be48ebd6a44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
;;; Author: Ethan Schoonover, Solarized; Greg Pfeil, Emacs adaptation
;;; URL: http://ethanschoonover.com/solarized

;;; This file is not (YET) part of GNU Emacs.

;;; # Usage

;;; 1. Install the color-theme package
;;;   (http://www.emacswiki.org/cgi-bin/wiki/ColorTheme)
;;; 2. Load this file
;;; 3. M-x color-theme-solarized

(let ((current-file-name (or load-file-name buffer-file-name)))
  (if current-file-name
    (let* ((reqname (concat (file-name-directory current-file-name)
                            "solarized-definitions.el"))
           (compreqname (concat reqname "c")))
      (require 'solarized-definitions
               (if (file-exists-p compreqname) compreqname reqname)))
    (require 'solarized-definitions)))

(eval-when-compile
  (require 'color-theme))

;;;###autoload
(defun color-theme-solarized ()
  "Color theme by Ethan Schoonover, created 2011-03-24.
Ported to Emacs by Greg Pfeil, http://ethanschoonover.com/solarized."
  (interactive)
  (color-theme-install
   `(color-theme-solarized () () ,@(solarized-color-definitions))))

(add-to-list 'color-themes
             `(color-theme-solarized
               "Solarized"
               ,solarized-description))

;;;###autoload
(defun color-theme-solarized-dark ()
  "Color theme by Ethan Schoonover, created 2011-03-24.
Ported to Emacs by Greg Pfeil, http://ethanschoonover.com/solarized."
  (declare (obsolete color-theme-solarized "2013-05-01"))
  (color-theme-solarized))
;;;###autoload
(defun color-theme-solarized-light ()
  "Color theme by Ethan Schoonover, created 2011-03-24.
Ported to Emacs by Greg Pfeil, http://ethanschoonover.com/solarized."
  (declare (obsolete color-theme-solarized "2013-05-01"))
  (color-theme-solarized))

(provide 'color-theme-solarized)