From a3a7b8d4649c0559240de7177a989d03ecca3209 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Tue, 9 Nov 2021 17:26:42 -0800 Subject: [PATCH] Move unfill-paragraph to general config As it really isn't org-specific. --- ha-config.org | 12 +++++++++++- ha-org.org | 12 +----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ha-config.org b/ha-config.org index 10c9d93..1f601cb 100644 --- a/ha-config.org +++ b/ha-config.org @@ -592,7 +592,17 @@ Stealing much of this from Spacemacs. #+BEGIN_SRC emacs-lisp (ha-leader "x" '(:ignore t :which-key "text") - "x q" '("fill paragraph" . fill-paragraph)) + "x q" '("fill paragraph" . fill-paragraph) + "x p" '("unfill paragraph" . unfill-paragraph)) +#+END_SRC +Unfilling a paragraph joins all the lines in a paragraph into a single line. Taken [[http://www.emacswiki.org/UnfillParagraph][from here]] ... I use this all the time: + +#+BEGIN_SRC emacs-lisp +(defun unfill-paragraph () + "Convert a multi-line paragraph into a single line of text." + (interactive) + (let ((fill-column (point-max))) + (fill-paragraph nil))) #+END_SRC *** Help Operations While the ~C-h~ is easy enough, I am now in the habit of typing ~SPC h~ instead. diff --git a/ha-org.org b/ha-org.org index 30ceca6..2ddd09d 100644 --- a/ha-org.org +++ b/ha-org.org @@ -169,16 +169,6 @@ The org API allows getting the context associated with /current element/. Howeve (setq context (org-element-property :parent context))) context)) #+END_SRC -** Unfill Paragraph -Unfilling a paragraph joins all the lines in a paragraph into a single line. Taken [[http://www.emacswiki.org/UnfillParagraph][from here]] ... I use this all the time: - -#+BEGIN_SRC emacs-lisp -(defun unfill-paragraph () - "Convert a multi-line paragraph into a single line of text." - (interactive) - (let ((fill-column (point-max))) - (fill-paragraph nil))) -#+END_SRC ** Tasks I need to add a /blocked/ state: @@ -310,7 +300,7 @@ At this point, we assume that the =use-package= for org is complete, so we can c #+END_SRC ** Exporters Need a few extra exporters: -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle no (use-package ox-md :straight nil)