From f5d7181e0ce7fd8af713930a960d1d7af99cb7bc Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Fri, 4 Jul 2025 09:53:01 +1000 Subject: [emacs] Render ol in nov without numbering --- emacs/.emacs.d/init/ycp-markup.el | 1 + 1 file changed, 1 insertion(+) (limited to 'emacs/.emacs.d/init') diff --git a/emacs/.emacs.d/init/ycp-markup.el b/emacs/.emacs.d/init/ycp-markup.el index c511d55..c331f49 100644 --- a/emacs/.emacs.d/init/ycp-markup.el +++ b/emacs/.emacs.d/init/ycp-markup.el @@ -120,6 +120,7 @@ "F" #'my-nov-skim-forward "B" #'my-nov-skim-backward) (add-to-list 'nov-shr-rendering-functions '(span . my-nov-render-span)) + (add-to-list 'nov-shr-rendering-functions '(ol . my-nov-render-ol)) (add-hook 'nov-mode-hook (lambda () (add-hook 'post-command-hook #'my-nov-update-mode-line nil t))) -- cgit v1.2.3