From 6e0948982683d642252b60725ebbb07a80cfffd8 Mon Sep 17 00:00:00 2001 From: John Doty Date: Mon, 4 Nov 2019 15:23:54 -0800 Subject: [PATCH] Some tweaks to emacs init.el --- .emacs.d/init.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index c2b5cc6..c3f5cf7 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -264,6 +264,15 @@ (when (memq window-system '(mac ns)) (exec-path-from-shell-initialize)) +;;; Stefan Monnier . It is the opposite of fill-paragraph +(defun unfill-paragraph (&optional region) + "Take a multi-line REGION and make it into a single line of text." + (interactive (progn (barf-if-buffer-read-only) '(t))) + (let ((fill-column (point-max)) + ;; This would override `fill-column' if it's an integer. + (emacs-lisp-docstring-fill-column t)) + (fill-paragraph nil region))) + ;; ================================================================= ;; Text mode configuration. ;; =================================================================