diff --git a/app/mindmap/eaf-mindmap.el b/app/mindmap/eaf-mindmap.el index 7a5efa7..aef99b1 100644 --- a/app/mindmap/eaf-mindmap.el +++ b/app/mindmap/eaf-mindmap.el @@ -316,7 +316,7 @@ actural call `org-json-gen-alist1' to work." (eaf-edit-mode) (set (make-local-variable 'eaf--buffer-id) buffer-id)) (switch-to-buffer edit-text-buffer) - (setq eaf-mindmap--current-add-mode "sub") + (setq-local eaf-mindmap--current-add-mode "sub") (setq header-line-format (substitute-command-keys (concat @@ -345,7 +345,7 @@ actural call `org-json-gen-alist1' to work." (eaf-edit-mode) (set (make-local-variable 'eaf--buffer-id) buffer-id)) (switch-to-buffer edit-text-buffer) - (setq eaf-mindmap--current-add-mode "brother") + (setq-local eaf-mindmap--current-add-mode "brother") (setq header-line-format (substitute-command-keys (concat @@ -374,7 +374,7 @@ actural call `org-json-gen-alist1' to work." (eaf-edit-mode) (set (make-local-variable 'eaf--buffer-id) buffer-id)) (switch-to-buffer edit-text-buffer) - (setq eaf-mindmap--current-add-mode "middle") + (setq-local eaf-mindmap--current-add-mode "middle") (setq header-line-format (substitute-command-keys (concat diff --git a/eaf.el b/eaf.el index 474448b..270d522 100644 --- a/eaf.el +++ b/eaf.el @@ -761,6 +761,8 @@ Python process only create application view when Emacs window or buffer state ch (defvar-local eaf--bookmark-title nil) +(defvar-local eaf-mindmap--current-add-mode nil) + (defun eaf-browser-restore-buffers () "EAF restore all opened EAF Browser buffers in the previous Emacs session. @@ -2002,7 +2004,7 @@ Make sure that your smartphone is connected to the same WiFi network as this com (eaf-edit-mode) (set (make-local-variable 'eaf--buffer-id) buffer-id)) (switch-to-buffer edit-text-buffer) - (setq eaf-mindmap--current-add-mode "") + (setq-local eaf-mindmap--current-add-mode "") (eaf--edit-set-header-line) (insert focus-text) ;; When text line number above