diff options
author | jao <jao@gnu.org> | 2021-10-25 21:56:21 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-10-25 21:56:21 +0100 |
commit | 61a5847fff8b59f74e1e70afc34d09b3a4e0eb41 (patch) | |
tree | 59ce54fda8d9b0cb23cae34feb984f170898086e | |
parent | 091da4191417e8f1d2cb8debe0233fb317ef5729 (diff) | |
download | elibs-61a5847fff8b59f74e1e70afc34d09b3a4e0eb41.tar.gz elibs-61a5847fff8b59f74e1e70afc34d09b3a4e0eb41.tar.bz2 |
wee tweak in jao-minibuffer that avoids jumping when showing pdfs
-rw-r--r-- | init.org | 40 | ||||
-rw-r--r-- | lib/eos/jao-minibuffer.el | 2 |
2 files changed, 21 insertions, 21 deletions
@@ -1598,26 +1598,26 @@ ("S" . jao-doc-view-save-session) ("u" . jao-doc-view-visit-url))) - ;; (use-package pdf-tools - ;; :ensure t - ;; :demand t - ;; :config - ;; (pdf-tools-install) - - ;; (dolist (f '(pdf-view-scroll-up-or-next-page - ;; pdf-view-scroll-down-or-previous-page - ;; pdf-view-previous-line-or-previous-page - ;; pdf-view-next-line-or-next-page)) - ;; (advice-add f :after #'jao--refresh)) - - ;; :diminish ((pdf-view-midnight-minor-mode . "")) - - ;; :bind (:map pdf-view-mode-map - ;; (("C-c C-d" . pdf-view-midnight-minor-mode) - ;; ("j" . pdf-view-next-line-or-next-page) - ;; ("J" . pdf-view-scroll-up-or-next-page) - ;; ("k" . pdf-view-previous-line-or-previous-page) - ;; ("K" . pdf-view-scroll-down-or-previous-page)))) + (use-package pdf-tools + :ensure t + :demand t + :config + (pdf-tools-install) + + (dolist (f '(pdf-view-scroll-up-or-next-page + pdf-view-scroll-down-or-previous-page + pdf-view-previous-line-or-previous-page + pdf-view-next-line-or-next-page)) + (advice-add f :after #'jao--refresh)) + + :diminish ((pdf-view-midnight-minor-mode . "")) + + :bind (:map pdf-view-mode-map + (("C-c C-d" . pdf-view-midnight-minor-mode) + ("j" . pdf-view-next-line-or-next-page) + ("J" . pdf-view-scroll-up-or-next-page) + ("k" . pdf-view-previous-line-or-previous-page) + ("K" . pdf-view-scroll-down-or-previous-page)))) (use-package saveplace-pdf-view :ensure t diff --git a/lib/eos/jao-minibuffer.el b/lib/eos/jao-minibuffer.el index 3474848..fda2c57 100644 --- a/lib/eos/jao-minibuffer.el +++ b/lib/eos/jao-minibuffer.el @@ -156,7 +156,7 @@ :extend t) (set-face-attribute 'mode-line-inactive nil :box nil :height 1 :background bg :foreground bg - :overline nil + :overline bg :underline jao-minibuffer-inactive-buffer-line-color :extend t))) |