Skip to content

Commit

Permalink
Make fill-paragraph toggleable using unfill
Browse files Browse the repository at this point in the history
  • Loading branch information
eightbitraptor committed Mar 19, 2024
1 parent b8032fa commit eb56b84
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ earliest reference I can find is a really ugly screenshot of my work Mac circa
- [[#ergonomics][Ergonomics]]
- [[#default-indentation][Default Indentation]]
- [[#default-selection-behaviour][Default Selection behaviour]]
- [[#m-q-should-toggle-fill-paragraph][M-q should toggle Fill Paragraph]]
- [[#configuring-the-gc][Configuring the GC]]
- [[#undo-tree][Undo Tree.]]
- [[#crux][Crux]]
Expand Down Expand Up @@ -376,19 +377,26 @@ generally.

*** Default Selection behaviour

And turn on ~delete-selection-mode~. This makes emacs visual selection
behave much more like "modern" editors. ie. when you select stuff and
start typing your text will _replace_ the selected text, and you can
highlight text and then hit backspace to delete it.
And turn on ~delete-selection-mode~. This makes emacs visual selection behave
much more like "modern" editors. ie. when you select stuff and start typing your
text will _replace_ the selected text, and you can highlight text and then hit
backspace to delete it.

Without this minor mode enabled Emacs will start inserting text
wherever the point is located (often at the end of the selection), and
not actually remove the seletion.
Without this minor mode enabled Emacs will start inserting text wherever the
point is located (often at the end of the selection), and not actually remove
the seletion.

#+begin_src emacs-lisp
(delete-selection-mode t)
#+end_src

*** M-q should toggle Fill Paragraph

#+begin_src emacs-lisp
(use-package unfill
:bind ([remap fill-paragraph] . unfill-toggle))'
#+end_src

*** Configuring the GC

Here we increase the number of bytes that are required to be allocated before
Expand Down

0 comments on commit eb56b84

Please sign in to comment.