From b30153cb64351fd7e6db9ee1da9e5bd0f8d81a36 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 27 Aug 2021 18:01:38 -0500 Subject: Enable olivetti-mode in org-mode --- init.el | 1 + lisp/acdw-org.el | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 8b22910..6eaab7b 100644 --- a/init.el +++ b/init.el @@ -1625,6 +1625,7 @@ successive invocations." (add-hook 'before-save-hook #'acdw-org/fix-blank-lines-in-buffer 0 :local)) (:hook variable-pitch-mode + olivetti-mode acdw/org-fix-lines-before-save) (advice-add 'org-delete-backward-char diff --git a/lisp/acdw-org.el b/lisp/acdw-org.el index 67d6f47..50a0488 100644 --- a/lisp/acdw-org.el +++ b/lisp/acdw-org.el @@ -373,7 +373,7 @@ instead of the true count." (let ((point-target (if (> arg 0) (point-max) (point-min)))) - (unless (or (org-next-visible-heading arg) + (unless (or (org-next-visible-heading arg) ; XXX: this doesn't work!!! ARGH (/= (point) point-target)) (when (buffer-narrowed-p) (widen) -- cgit 1.4.1-21-gabe81