Add `visual-line-mode' to `org-mode-hook'

See the comments for details.  Subject to change.
This commit is contained in:
Case Duckworth 2021-04-12 12:54:52 -05:00
parent 69abf8d1b0
commit 65eb2308f5
1 changed files with 10 additions and 1 deletions

11
init.el
View File

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