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:
parent
038e5de1ad
commit
ce4938b6a5
15
init.el
15
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
|
||||
|
|
Loading…
Reference in New Issue