diff --git a/home-manager/software/emacs/emacs.d/loader.org b/home-manager/software/emacs/emacs.d/loader.org index 1b78261..b575ba9 100644 --- a/home-manager/software/emacs/emacs.d/loader.org +++ b/home-manager/software/emacs/emacs.d/loader.org @@ -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