diff --git a/lisp/doom-editor.el b/lisp/doom-editor.el index e9d460adc..2df2cbb66 100644 --- a/lisp/doom-editor.el +++ b/lisp/doom-editor.el @@ -406,6 +406,11 @@ the unwritable tidbits." (unless doom-large-file-p (apply fn args))) + (defadvice! doom--inhibit-saveplace-if-point-not-at-bol-a (&rest _) + "If something else has moved point, don't try to move it again." + :before-while #'save-place-find-file-hook + (bobp)) + (defadvice! doom--dont-prettify-saveplace-cache-a (fn) "`save-place-alist-to-file' uses `pp' to prettify the contents of its cache. `pp' can be expensive for longer lists, and there's no reason to prettify cache