From 264fae53a90395463f65561c2a6ac6f194521abd Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sat, 11 Jan 2025 21:32:36 +1100 Subject: [emacs] improve nov config margins without fringes --- emacs/.emacs.d/init/ycp-editing.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'emacs/.emacs.d/init/ycp-editing.el') diff --git a/emacs/.emacs.d/init/ycp-editing.el b/emacs/.emacs.d/init/ycp-editing.el index 907c80b..d497f42 100644 --- a/emacs/.emacs.d/init/ycp-editing.el +++ b/emacs/.emacs.d/init/ycp-editing.el @@ -30,6 +30,8 @@ ;; line wrap at window edge (setq-default truncate-lines nil) (setq kill-do-not-save-duplicates t) +(setq kill-transform-function + (lambda (s) (when (string-match-p "[^ \t\n]" s) s))) (setq bidi-inhibit-bpa t) (setq save-interprogram-paste-before-kill t) (setq kill-ring-max 200) -- cgit v1.2.3