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.
This commit is contained in:
Daniel - 2023-02-10 20:59:11 +01:00
parent 24aaf17d0e
commit daa7882732
Signed by: dbo
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 7 additions and 0 deletions

View File

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