disable the colour theme in terminal

This commit is contained in:
Andreas Zweili 2022-03-27 14:14:17 +02:00
parent 4029e92a95
commit a74c38489a

View File

@ -261,7 +261,15 @@ which I store in my sourec directory as the current theme.
#+begin_src emacs-lisp
;; 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)
(if (display-graphic-p)
;; load solarized color theme
(use-package solarized-theme
: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-high-contrast-mode-line t)
(set-face-inverse-video 'region nil)
(load-theme 'solarized-light t)))
(load-theme 'solarized-light t))))
#+end_src
** smooth-scrolling