From 51c595adc499e4aa3cc76f5682bf51d2b10d1306 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 9 Dec 2018 16:26:22 -0500 Subject: Add disable-autofill command --- lisp/km-editing.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lisp') 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 @@ -35,6 +35,13 @@ (let ((fill-column (point-max))) (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. -- cgit v1.2.3