diff options
author | Yuchen Pei <id@ypei.org> | 2025-07-04 09:36:45 +1000 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2025-07-04 09:36:45 +1000 |
commit | f75406125d0d6f1e0e92aeedf85290e587e0ed24 (patch) | |
tree | e3c82129d669db67e23f8592548f4e056b47eb9c /emacs/.emacs.d/init | |
parent | 94f0f9d016546a1cf674c6dcf78ebfb2b0f9b56f (diff) |
[emacs] Show global position percentage in mode line
Diffstat (limited to 'emacs/.emacs.d/init')
-rw-r--r-- | emacs/.emacs.d/init/ycp-markup.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init/ycp-markup.el b/emacs/.emacs.d/init/ycp-markup.el index c90dc6a..c511d55 100644 --- a/emacs/.emacs.d/init/ycp-markup.el +++ b/emacs/.emacs.d/init/ycp-markup.el @@ -114,8 +114,15 @@ (my-override nov-scroll-up) (my-keybind nov-mode-map "Q" #'my-nov-copy-buffer-file-with-staging - "i" #'imenu) + "i" #'imenu + "f" #'nov-scroll-up + "b" #'nov-scroll-down + "F" #'my-nov-skim-forward + "B" #'my-nov-skim-backward) (add-to-list 'nov-shr-rendering-functions '(span . my-nov-render-span)) + (add-hook 'nov-mode-hook + (lambda () + (add-hook 'post-command-hook #'my-nov-update-mode-line nil t))) ) ;;; json-mode |