diff --git a/emacs-lisp/org_mode.org b/emacs-lisp/org_mode.org index 9e05ea2..87aa9e2 100644 --- a/emacs-lisp/org_mode.org +++ b/emacs-lisp/org_mode.org @@ -1,5 +1,6 @@ :PROPERTIES: :ID: 986ca7a5-d225-49bb-9e35-f2dffafe8aee +:header-args:emacs-lisp: :comments link :results none :END: #+title: Org Mode #+filetags: emacs-load @@ -139,9 +140,6 @@ Don't delete other windows when exporting, it is very distracting, just use popp (advice-add 'org-export--dispatch-ui :around 'org-export--dispatch-ui/popper) #+end_src -#+RESULTS: - - ** Sliced Previews Normally a LaTeX preview is just one huge image which makes Emacs really jumpy and makes writing prose a really unpleasant experience. With these two functions, that's fixed. They work using mainly text properties (overlays are still involved but only one per preview, max two) so it should be fast still. @@ -227,3 +225,18 @@ Normally a LaTeX preview is just one huge image which makes Emacs really jumpy a #+end_src + +* Visual Fill Column +I figured out eventually that having columns filled at a consistent width and having the text centered is really nice for prose. So enable it. + +#+begin_src emacs-lisp + (defun magic_rb/org-mode-visual-fill-column-mode-conf () + "" + (setq visual-fill-column-center-text t)) +#+end_src + +#+begin_src emacs-lisp + (add-hook 'org-mode-hook #'visual-fill-column-mode) + (add-hook 'org-mode-hook #'magic_rb/org-mode-visual-fill-column-mode-conf) +#+end_src +