diff options
author | Kyle Meyer <kyle@kyleam.com> | 2018-12-09 16:26:22 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2018-12-09 16:26:22 -0500 |
commit | 51c595adc499e4aa3cc76f5682bf51d2b10d1306 (patch) | |
tree | af78d847d7b99d27645947dd8fcf55f344048348 | |
parent | 2583d4f206222f385949a676498d9b6296c261ab (diff) | |
download | emacs.d-51c595adc499e4aa3cc76f5682bf51d2b10d1306.tar.gz |
Add disable-autofill command
-rw-r--r-- | lisp/km-editing.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/km-editing.el b/lisp/km-editing.el index 2d29216..53ca98a 100644 --- a/lisp/km-editing.el +++ b/lisp/km-editing.el @@ -36,6 +36,13 @@ (fill-paragraph nil))) ;;;###autoload +(defun km/disable-autofill () + (interactive) + (visual-line-mode 1) + (auto-fill-mode -1) + (set (make-local-variable 'truncate-lines) nil)) + +;;;###autoload (defun km/fill-surrounding-indented () "Fill current line with all surrounding lines of same indentation. This is like `fill-individual-paragraphs', but 1) it acts only on |