diff options
author | jao <jao@gnu.org> | 2021-10-28 01:45:12 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-10-28 01:45:12 +0100 |
commit | c7b34aab545af4f20daf26638536049865e75410 (patch) | |
tree | 5d7c64e73ca0022ab321818167bf8eab488f5373 /init.org | |
parent | dce73e82ef9a7fe2f249f7e1ac87bfbe82e8a6f4 (diff) | |
download | elibs-c7b34aab545af4f20daf26638536049865e75410.tar.gz elibs-c7b34aab545af4f20daf26638536049865e75410.tar.bz2 |
and how about initial handling of colors?
Diffstat (limited to 'init.org')
-rw-r--r-- | init.org | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -592,7 +592,8 @@ (if (jao-colors-scheme-dark-p) (setq jao-minibuffer-active-buffer-line-color "azure4" jao-minibuffer-inactive-buffer-line-color "grey25") - (setq jao-minibuffer-active-buffer-line-color "burlywood3")) + (setq jao-minibuffer-active-buffer-line-color "burlywood3" + jao-minibuffer-inactive-buffer-line-color "grey25")) :commands (jao-minibuffer-add-variable jao-minibuffer-refresh jao-minibuffer-add-mode-line)) @@ -601,7 +602,9 @@ (require 'mb-depth) (minibuffer-depth-indicate-mode 1) - (when window-system (jao-minibuffer-add-mode-line 90)) + (when window-system + (add-hook 'after-init-hook + (lambda ()) (jao-minibuffer-add-mode-line 90))) #+end_src *** Time display #+BEGIN_SRC emacs-lisp @@ -1621,13 +1624,15 @@ (use-package pdf-tools :ensure t :demand t + :init + (add-hook 'after-init-hook + (lambda () + (setq pdf-view-midnight-colors + (cons (frame-parameter nil 'foreground-color) + (frame-parameter nil 'background-color))))) :config (pdf-tools-install) - (setq pdf-view-midnight-colors - (cons (frame-parameter nil 'foreground-color) - (frame-parameter nil 'background-color))) - (dolist (f '(pdf-view-scroll-up-or-next-page pdf-view-scroll-down-or-previous-page pdf-view-previous-line-or-previous-page @@ -1996,7 +2001,7 @@ (put cmd 'repeat-map 'diff-hl-command-map)) diff-hl-command-map) (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh) - (diff-hl-margin-mode 1)) + (when (jao-colors-scheme-dark-p) (diff-hl-margin-mode 1))) (global-diff-hl-mode 1) |