|
From: | Bastien |
Subject: | Re: [Orgmode] Re: Showing hidden subtree automatically if point is hidden when the buffer is opened |
Date: | Tue, 28 Jul 2009 19:59:35 +0800 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
User <address@hidden> writes: > I added the timer, because I didn't know in which order the hooks > are run. If org-mode hook runs first and then saveplace's hook > which restores point then the above code has no effect. saveplace adds the hook at the end of the hooks list, by calling add-hook like this: (add-hook 'find-file-hook 'save-place-find-file-hook t) ^ The `t' means put this hook at the end. So your org-mode hook will be safely called *before* saveplace's. -- Bastien
[Prev in Thread] | Current Thread | [Next in Thread] |