From 0908027f9f374803a5efa09e7a65ac09dcc4fee4 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 6 Jul 2020 23:18:31 -0700 Subject: [PATCH] =?UTF-8?q?Stop=20using=20=E2=80=98auto-fill-mode=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of using ‘auto-fill-mode’, start using ‘org-indent-mode’ and ‘visual-line-mode’. It looks the same, but without using any newlines and indentation. It works well if combined with other tools like Orgzly which don’t do any kind of indentation on their own. --- oni-org/oni-org.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index ced5a6a..5ff19f6 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2020.0511.001009 +;; Version: 2020.0705.113618 ;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna diminish all-the-icons) ;; This program is free software; you can redistribute it and/or modify @@ -338,10 +338,11 @@ also move point to the start of the heading." (add-to-list 'org-babel-load-languages '(java . t)) -(add-hook 'org-mode-hook 'auto-fill-mode) -(add-hook 'org-mode-hook 'flyspell-mode) -(add-hook 'org-mode-hook #'oni-org-set-todo-keyword-faces) (add-hook 'org-mode-hook #'oni-org-set-tag-faces) +(add-hook 'org-mode-hook #'oni-org-set-todo-keyword-faces) +(add-hook 'org-mode-hook 'flyspell-mode) +(add-hook 'org-mode-hook 'org-indent-mode) +(add-hook 'org-mode-hook 'visual-line-mode) (org-edna-mode)