Created
September 15, 2016 18:38
-
-
Save sellout/1426f56b71d21876989dc8edcb4994ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar solarized-directory "~/Documents/personal/emacs-color-theme-solarized/") | |
(add-to-list 'load-path "~/Documents/Lisp-community/emacs-extended-faces/") | |
(if (< emacs-major-version 24) | |
(progn (load (concat solarized-directory "color-theme-solarized")) | |
(color-theme-solarized)) | |
(progn (add-to-list 'custom-theme-load-path solarized-directory) | |
(load-theme 'solarized t))) | |
;; No way to set default-terminal-alist, so we do the work for each new frame. | |
(add-hook 'after-make-frame-functions | |
(lambda (frame) | |
(unless (or (display-graphic-p frame) | |
(eql (terminal-parameter frame 'background-mode) 'dark)) | |
(set-terminal-parameter frame 'background-mode 'dark) | |
(if (< emacs-major-version 24) | |
(color-theme-solarized) | |
(enable-theme 'solarized))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment