From 76e571a55c924cf88c3f80bd9ec98a3e5a4e8ab8 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Fri, 23 Mar 2018 00:06:18 -0400 Subject: [PATCH] Bubble up unfill-paragraph --- global.org | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/global.org b/global.org index 2bb6fbe..300ce30 100644 --- a/global.org +++ b/global.org @@ -437,6 +437,18 @@ (global-set-key (kbd "") 'flash-hline) #+END_SRC +** unfill-paragraph + This is authored by Stefan Monnier . It is the opposite of + fill-paragraph + #+BEGIN_SRC emacs-lisp + (defun unfill-paragraph (&optional region) + "Takes a multi-line paragraph and makes 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))) + #+END_SRC * Tidy-up ** Save emacs-session files in appropriate directory Save session files to the ~sessions~ directory so that they do not litter @@ -487,16 +499,6 @@ (add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/") t) - ;; (eval-after-load 'tramp '(setenv "SHELL" "/bin/bash")) - - ;;; Stefan Monnier . It is the opposite of fill-paragraph - (defun unfill-paragraph (&optional region) - "Takes a multi-line paragraph and makes 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))) (defun select-frame-on-current-activity () (select-frame-on-activity (kde-current-activity))