From 65eb2308f54a6a2a758500cf84b502c0d2728e7b Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 12 Apr 2021 12:54:52 -0500 Subject: Add `visual-line-mode' to `org-mode-hook' See the comments for details. Subject to change. --- init.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index fcc560e..0e8db32 100644 --- a/init.el +++ b/init.el @@ -366,7 +366,16 @@ org-export-with-smart-quotes t org-export-with-sub-superscripts t) (:bind "RET" unpackaged/org-return-dwim) - (add-hook 'before-save-hook #'acdw/hook--org-mode-fix-blank-lines)) + (add-hook 'before-save-hook #'acdw/hook--org-mode-fix-blank-lines) + + ;; There's a few ways to do this. + ;; I'm choosing to do `visual-line-mode' in a hook, because + ;; `org-startup-truncated' makes the good point that really long tables in + ;; orgmode, or links, can look really bad when truncated. However, + ;; `org-startup-truncated' would follow the usage of the rest of Emacs I have + ;; setup. Maybe I should reëxamine my usage of `visual-line-mode', + ;; `truncate-lines', and `word-wrap'... + (:hook visual-line-mode)) (setup eshell (:option eshell-directory-name (acdw/dir "eshell/" t) -- cgit 1.4.1-21-gabe81