From daa788273205597e7fdbb3c9e8f945083d0b0030 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 10 Feb 2023 20:59:11 +0100 Subject: [PATCH] Do not auto-fill in textile-mode Text edited in this mode is usually meant for Redmine Wiki pages and the like, and line-wrapping there is then done by the browser. Manually inserted line breaks only disrupt here. --- init.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.el b/init.el index eb466f4..b2a821d 100644 --- a/init.el +++ b/init.el @@ -3168,6 +3168,13 @@ With given ARG, display files in `db/important-document-path’." (use-package sh-script :init (setq sh-basic-offset 2)) +(use-package textile-mode + :config (progn + ;; Do not wrap lines automatically in textile mode, as text produced + ;; in this mode is usually copied to Redmine Wiki pages later on. + (add-hook 'textile-mode-hook #'turn-off-auto-fill) + (add-hook 'textile-mode-hook #'turn-on-visual-line-mode))) + (use-package timeline-tools :load-path "site-lisp" :commands (timeline-tools-format-timeline