Enable olivetti-mode in org-mode
This commit is contained in:
parent
65b34db411
commit
b30153cb64
1
init.el
1
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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue