forked from colonelpanic/dotfiles
Start using theme transitions again.
This commit is contained in:
parent
01a995a455
commit
8963390c39
7
init.el
7
init.el
@ -51,7 +51,6 @@
|
|||||||
|
|
||||||
(defvar packages-python '(jedi pymacs pytest sphinx-doc))
|
(defvar packages-python '(jedi pymacs pytest sphinx-doc))
|
||||||
(defvar packages-scala '(scala-mode2 ensime))
|
(defvar packages-scala '(scala-mode2 ensime))
|
||||||
(setq packages-scala '())
|
|
||||||
(defvar packages-js '(js2-mode js3-mode web-beautify tern tern-auto-complete))
|
(defvar packages-js '(js2-mode js3-mode web-beautify tern tern-auto-complete))
|
||||||
|
|
||||||
(defun ensure-packages-installed (packages)
|
(defun ensure-packages-installed (packages)
|
||||||
@ -376,8 +375,6 @@
|
|||||||
;; Themes
|
;; Themes
|
||||||
;; =============================================================================
|
;; =============================================================================
|
||||||
|
|
||||||
(load-theme 'molokai t)
|
|
||||||
|
|
||||||
;; Choose random theme:
|
;; Choose random theme:
|
||||||
;; (defvar dark-themes '(monokai molokai solarized-dark base16-default))
|
;; (defvar dark-themes '(monokai molokai solarized-dark base16-default))
|
||||||
;; (defvar light-themes '(zenburn solarized-light))
|
;; (defvar light-themes '(zenburn solarized-light))
|
||||||
@ -392,7 +389,7 @@
|
|||||||
(let ((hour
|
(let ((hour
|
||||||
(string-to-number (format-time-string "%H"))))
|
(string-to-number (format-time-string "%H"))))
|
||||||
(if (or (< hour 6) (> hour 18))
|
(if (or (< hour 6) (> hour 18))
|
||||||
(random-choice dark-themes) (random-choice light-theme))))
|
(random-choice dark-themes) (random-choice light-themes))))
|
||||||
|
|
||||||
(setq current-theme nil)
|
(setq current-theme nil)
|
||||||
|
|
||||||
@ -409,7 +406,7 @@
|
|||||||
(setq hl-line-mode nil))
|
(setq hl-line-mode nil))
|
||||||
|
|
||||||
;; enable to set theme based on time of day.
|
;; enable to set theme based on time of day.
|
||||||
(run-at-time "12:00" 3600 'set-theme)
|
(run-at-time "12:00" 60 'set-theme)
|
||||||
|
|
||||||
;; Set the default font for emacs.
|
;; Set the default font for emacs.
|
||||||
;;(set-frame-font "Menlo 11" t t)
|
;;(set-frame-font "Menlo 11" t t)
|
||||||
|
Loading…
Reference in New Issue
Block a user