forked from colonelpanic/dotfiles
Fix theming stuff.
This commit is contained in:
parent
5e6d7e224b
commit
3404f466e2
26
init.el
26
init.el
@ -71,11 +71,6 @@
|
|||||||
;; Disables
|
;; Disables
|
||||||
;; =============================================================================
|
;; =============================================================================
|
||||||
|
|
||||||
;; Get rid of any gui like features...
|
|
||||||
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
|
|
||||||
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
|
|
||||||
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
|
|
||||||
|
|
||||||
;; Disable the creation of backup files.
|
;; Disable the creation of backup files.
|
||||||
(setq backup-inhibited t)
|
(setq backup-inhibited t)
|
||||||
(setq make-backup-files nil)
|
(setq make-backup-files nil)
|
||||||
@ -181,6 +176,7 @@
|
|||||||
(setq retval (cons 'exception (list ex))))
|
(setq retval (cons 'exception (list ex))))
|
||||||
nil))
|
nil))
|
||||||
|
|
||||||
|
(require 'pytest)
|
||||||
(add-hook 'python-mode-hook (lambda () (setq show-trailing-whitespace t)))
|
(add-hook 'python-mode-hook (lambda () (setq show-trailing-whitespace t)))
|
||||||
(add-hook 'python-mode-hook (lambda () (if use-python-tabs python-tabs)))
|
(add-hook 'python-mode-hook (lambda () (if use-python-tabs python-tabs)))
|
||||||
(add-hook 'python-mode-hook (lambda () (subword-mode t)))
|
(add-hook 'python-mode-hook (lambda () (subword-mode t)))
|
||||||
@ -399,8 +395,6 @@
|
|||||||
;; (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))
|
||||||
|
|
||||||
(load-theme 'solarized-dark t)
|
|
||||||
|
|
||||||
(defvar dark-themes '(solarized-dark))
|
(defvar dark-themes '(solarized-dark))
|
||||||
(defvar light-themes '(solarized-light))
|
(defvar light-themes '(solarized-light))
|
||||||
|
|
||||||
@ -420,15 +414,19 @@
|
|||||||
(let ((appropriate-theme (get-appropriate-theme)))
|
(let ((appropriate-theme (get-appropriate-theme)))
|
||||||
(if (eq appropriate-theme current-theme)
|
(if (eq appropriate-theme current-theme)
|
||||||
nil
|
nil
|
||||||
(progn (load-theme-no-hl-line appropriate-theme)
|
(progn (load-theme appropriate-theme)
|
||||||
(setq current-theme appropriate-theme)))))
|
(setq current-theme appropriate-theme)))))
|
||||||
|
|
||||||
(defun load-theme-no-hl-line (theme)
|
(defun remove-fringe-and-hl-line-mode (&rest stuff)
|
||||||
(load-theme theme t)
|
(set-fringe-style '(0 . 0))
|
||||||
(setq hl-line-mode nil))
|
(setq hl-line-mode nil))
|
||||||
|
|
||||||
;; enable to set theme based on time of day.
|
(advice-add 'load-theme :after #'remove-fringe-and-hl-line-mode)
|
||||||
(run-at-time "12:00" 3600 'set-theme)
|
|
||||||
|
|
||||||
;; Set the default font for emacs.
|
;; enable to set theme based on time of day.
|
||||||
;;(set-frame-font "Menlo 11" t t)
|
(run-at-time "00:00" 3600 'set-theme)
|
||||||
|
|
||||||
|
;; Get rid of any gui like features...
|
||||||
|
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
|
||||||
|
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
|
||||||
|
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
|
||||||
|
Loading…
Reference in New Issue
Block a user