summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-10-25 21:56:21 +0100
committerjao <jao@gnu.org>2021-10-25 21:56:21 +0100
commit61a5847fff8b59f74e1e70afc34d09b3a4e0eb41 (patch)
tree59ce54fda8d9b0cb23cae34feb984f170898086e
parent091da4191417e8f1d2cb8debe0233fb317ef5729 (diff)
downloadelibs-61a5847fff8b59f74e1e70afc34d09b3a4e0eb41.tar.gz
elibs-61a5847fff8b59f74e1e70afc34d09b3a4e0eb41.tar.bz2
wee tweak in jao-minibuffer that avoids jumping when showing pdfs
-rw-r--r--init.org40
-rw-r--r--lib/eos/jao-minibuffer.el2
2 files changed, 21 insertions, 21 deletions
diff --git a/init.org b/init.org
index 5b250fa..a12615a 100644
--- a/init.org
+++ b/init.org
@@ -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)))