Saveplace is a nice tool to remember where I have left of in a file. But for Org files it causes me problems when I quit emacs in the middle of a heading.
My current try to deactivate it in org-files is to use a hook and set 'save-place to nil.
(require 'saveplace) (setq save-place-file (concat user-emacs-directory "saveplace.el") ) (setq-default save-place t) (defun max/org-mode-hook () (setq save-place nil) (flyspell-mode)) (add-hook 'org-mode-hook 'max/org-mode-hook)
This works most of the time but for a strange reason it is sometimes still activated in org-mode and I start at the last position instead of line 1 when I open an org file. I'm not sure how to produce this reliable.
Any tips how I can make the deactivation of saveplace reliable in org-mode?