From 59eb94b02824ed0e54d07c7e4092ca7fc02d8f0b Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 8 Jan 2025 20:54:03 +0000 Subject: nits --- init.el | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 4f54b41..51a48f7 100644 --- a/init.el +++ b/init.el @@ -930,6 +930,13 @@ scroll-step 1 redisplay-skip-fontification-on-input nil)) +;;;; show diffs when running C-x s +(add-to-list 'save-some-buffers-action-alist + `("d" + ,(lambda (buffer) + (diff-buffer-with-file (buffer-file-name buffer))) + "show diff between the buffer and its file")) + ;;; Windows ;;;; splitting and switch (setq split-height-threshold 80 @@ -1529,9 +1536,9 @@ :hook ((doc-view-mode . jao-doc-session-mark)) :bind (:map doc-view-mode-map ("j" . doc-view-next-line-or-next-page) - ("J" . doc-view-scroll-up-or-next-page) + ("J" . doc-view-search-next-match) ("k" . doc-view-previous-line-or-previous-page) - ("K" . doc-view-scroll-down-or-previous-page) + ("K" . doc-view-search-previous-match) ("z" . jao-open-with-zathura))) (use-package jao-doc-session :demand t) -- cgit v1.2.3