branch: externals/hyperbole commit 374086f2d9f1d792f928b6ab82acf494499a2edb Author: Mats Lidell <mats.lid...@lidells.se> Commit: GitHub <nore...@github.com>
Set hook to be local to kotl-mode (#83) --- ChangeLog | 4 ++++ kotl/kotl-mode.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cb0bd50..ecf7b95 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2021-05-13 Mats Lidell <ma...@gnu.org> + +* kotl/kotl-mode.el (kotl-mode): Set hook to be local to buffer. + 2021-05-12 Mats Lidell <ma...@gnu.org> * kotl/kotl-mode.el (kotl-mode): Use write-file-functions diff --git a/kotl/kotl-mode.el b/kotl/kotl-mode.el index 361071f..869942d 100644 --- a/kotl/kotl-mode.el +++ b/kotl/kotl-mode.el @@ -87,7 +87,7 @@ It provides the following keys: ;; ;; Ensure that outline structure data is saved when save-buffer is called ;; from save-some-buffers, {C-x s}. - (add-hook 'write-file-functions #'kotl-mode:update-buffer) + (add-hook 'write-file-functions #'kotl-mode:update-buffer nil 'local) (mapc #'make-local-variable '(kotl-previous-mode indent-line-function indent-region-function outline-isearch-open-invisible-function