Move unfill-paragraph to general config

As it really isn't org-specific.
This commit is contained in:
Howard Abrams 2021-11-09 17:26:42 -08:00
parent b5282059f2
commit a3a7b8d464
2 changed files with 12 additions and 12 deletions

View file

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

View file

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