summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2024-01-12 02:14:02 +0000
committerjao <jao@gnu.org>2024-01-12 02:14:02 +0000
commit33f14ed05e6c7dde3b7d9e42ee1a36d1f05e14d2 (patch)
tree3c862aae7e6b9ebd26c32ccd163236aa3a772a6a
parent75b07bebbcfb6f472c68b0967c2fb5a201d6f13f (diff)
downloadelibs-33f14ed05e6c7dde3b7d9e42ee1a36d1f05e14d2.tar.gz
elibs-33f14ed05e6c7dde3b7d9e42ee1a36d1f05e14d2.tar.bz2
attic
-rw-r--r--attic/elisp/misc.el36
1 files changed, 12 insertions, 24 deletions
diff --git a/attic/elisp/misc.el b/attic/elisp/misc.el
index dc3a76c..e634548 100644
--- a/attic/elisp/misc.el
+++ b/attic/elisp/misc.el
@@ -598,30 +598,6 @@
(unless (display-graphic-p) (global-company-mode 1))
-;;; pdf-tools
-(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)))))
-
- :hook ((pdf-view-mode . jao-doc-session-mark))
-
- :config (pdf-tools-install)
-
- :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))))
-
;;; eldoc for magit status/log buffers
(defun jao-magit-eldoc-for-commit (_callback)
(when-let ((commit (magit-commit-at-point)))
@@ -796,6 +772,18 @@
(when-let* ((a (completing-read "Play album: " resa nil t))
(s (car (alist-get a resa nil nil 'string=))))
(jao-mpc--add-and-play s port t)))))
+;;; dogears
+(use-package dogears
+ :ensure t
+ :enabled nil
+ :bind (:map global-map
+ ("M-g d" . dogears-go)
+ ("M-g M-b" . dogears-back)
+ ("M-g M-f" . dogears-forward)
+ ("M-g M-d" . dogears-list)
+ ("M-g M-D" . dogears-sidebar)))
+
+(dogears-mode)
;;; snippets
(defun jao-sway-run-or-focus-tidal ()
(interactive)