From ce4938b6a5cc45a01dd47c1c1151a41387de144f Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 30 Dec 2021 12:26:56 -0600 Subject: Change `sentence-end-double-space` to nil mostly When filling, I want it to be t. So I got to use `dlet` !!! --- init.el | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 1000714..6cfc405 100644 --- a/init.el +++ b/init.el @@ -25,10 +25,17 @@ (setup (:require +emacs) (:also-load +lisp) - ;; +emacs.el contains super-basic defaults that are basically - ;; necessary for good functioning. In this block, I add extra - ;; things or more "experimental" ones that might not belong in a - ;; separate file. + ;; +emacs.el contains super-basic defaults that are basically necessary for + ;; good functioning. In this block, I add extra things or more "experimental" + ;; ones that might not belong in a separate file. + (:option sentence-end-double-space nil) ; I can't believe I'm doing this... + ;; Setting `sentence-end-double-space' to nil means that `fill-paragraph' + ;; fills single-spaced sentences, which I /don't/ like. This advice will fix + ;; that. + (define-advice fill-region (:around (fn &rest r)) + (dlet ((sentence-end-double-space t)) + (apply fn r))) + ;; Bindings (:global "C-x C-k" #'kill-this-buffer "C-x 4 n" #'clone-buffer "C-c v" #'visible-mode -- cgit 1.4.1-21-gabe81