Use function for switching treemacs workspace
This commit is contained in:
parent
883bafff65
commit
42935deb6b
|
@ -1964,7 +1964,7 @@ convenience function ensures that only the project directory is open.
|
||||||
(append (remove-if (lambda (w) (string= (treemacs-workspace->name w) name))
|
(append (remove-if (lambda (w) (string= (treemacs-workspace->name w) name))
|
||||||
treemacs--workspaces)
|
treemacs--workspaces)
|
||||||
(list workspace)))
|
(list workspace)))
|
||||||
(setf (treemacs-current-workspace) workspace)
|
(treemacs-do-switch-workspace workspace)
|
||||||
(treemacs--invalidate-buffer-project-cache)
|
(treemacs--invalidate-buffer-project-cache)
|
||||||
(treemacs--rerender-after-workspace-change))))
|
(treemacs--rerender-after-workspace-change))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
Loading…
Reference in a new issue