disable the colour theme in terminal
This commit is contained in:
parent
4029e92a95
commit
a74c38489a
|
@ -261,7 +261,15 @@ which I store in my sourec directory as the current theme.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
;; Color theme
|
;; Color theme
|
||||||
|
;; disable background in terminal
|
||||||
|
(defun on-after-init ()
|
||||||
|
(unless (display-graphic-p (selected-frame))
|
||||||
|
(set-face-background 'default "unspecified-bg" (selected-frame))))
|
||||||
|
|
||||||
|
(add-hook 'window-setup-hook 'on-after-init)
|
||||||
|
|
||||||
(when (boundp 'enable-color-theme)
|
(when (boundp 'enable-color-theme)
|
||||||
|
(if (display-graphic-p)
|
||||||
;; load solarized color theme
|
;; load solarized color theme
|
||||||
(use-package solarized-theme
|
(use-package solarized-theme
|
||||||
:ensure t
|
:ensure t
|
||||||
|
@ -270,7 +278,7 @@ which I store in my sourec directory as the current theme.
|
||||||
(setq solarized-scale-org-headlines nil)
|
(setq solarized-scale-org-headlines nil)
|
||||||
(setq solarized-high-contrast-mode-line t)
|
(setq solarized-high-contrast-mode-line t)
|
||||||
(set-face-inverse-video 'region nil)
|
(set-face-inverse-video 'region nil)
|
||||||
(load-theme 'solarized-light t)))
|
(load-theme 'solarized-light t))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** smooth-scrolling
|
** smooth-scrolling
|
||||||
|
|
Loading…
Reference in New Issue
Block a user