aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init/ycp-editing.el
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2025-01-11 21:32:36 +1100
committerYuchen Pei <id@ypei.org>2025-01-11 21:32:36 +1100
commit264fae53a90395463f65561c2a6ac6f194521abd (patch)
tree0ea1f56bcce3590709bfad7ca5a6e4e81f18b277 /emacs/.emacs.d/init/ycp-editing.el
parent7b7dc00de551543a102ad7baff9e234cb0da8cb2 (diff)
[emacs] improve nov config
margins without fringes
Diffstat (limited to 'emacs/.emacs.d/init/ycp-editing.el')
-rw-r--r--emacs/.emacs.d/init/ycp-editing.el2
1 files changed, 2 insertions, 0 deletions
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)