branch: externals/cursory commit f9f83a8f07d91c03e93cb83196b6613b6889ce3a Author: Philip Kaludercic <phil...@posteo.net> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Use lisp-data-mode only if avaliable --- cursory.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cursory.el b/cursory.el index bd71d2f857..1a5f991e68 100644 --- a/cursory.el +++ b/cursory.el @@ -148,8 +148,11 @@ With optional LOCAL as a prefix argument, set the Can be assigned to `kill-emacs-hook'." (when cursory--style-hist (with-temp-file cursory-latest-state-file - (insert (concat ";; Auto-generated file;" - " don't edit -*- mode: lisp-data -*-\n")) + (insert ";; Auto-generated file; don't edit -*- mode: " + (if (<= 28 emacs-major-version) + "lisp-data" + "emacs-lisp") + " -*-\n")) (pp (intern (car cursory--style-hist)) (current-buffer))))) (defvar cursory-recovered-preset nil