Enable olivetti-mode in org-mode

This commit is contained in:
Case Duckworth 2021-08-27 18:01:38 -05:00
parent 65b34db411
commit b30153cb64
2 changed files with 2 additions and 1 deletions

View File

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

View File

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