Change `sentence-end-double-space` to nil mostly

When filling, I want it to be t.  So I got to use `dlet` !!!
This commit is contained in:
Case Duckworth 2021-12-30 12:26:56 -06:00
parent 038e5de1ad
commit ce4938b6a5
1 changed files with 11 additions and 4 deletions

15
init.el
View File

@ -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