diff --git a/init.d/basics/ui.el b/init.d/basics/ui.el index ede9723..b66861c 100644 --- a/init.d/basics/ui.el +++ b/init.d/basics/ui.el @@ -1,6 +1,6 @@ ;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*- -;; Time-stamp: <2020-11-29T09:15:41+0100> +;; Time-stamp: <2020-11-29T11:51:57+0100> ;;; Commentary: ;; * treemacs @@ -14,9 +14,7 @@ (use-package treemacs :after (display-line-numbers doom-themes hl-line) - ;; ;; Start with a clean workspace list. - ;; :init (delete-file (expand-file-name ".cache/treemacs-persist" - ;; user-emacs-directory)) + :commands (my/treemacs-show-maybe) :custom ((treemacs-project-follow-cleanup t) ; Collapse projects when leaving. (treemacs-silent-refresh t)) ; No log message on refresh. :config (progn @@ -33,7 +31,7 @@ (defun my/treemacs-show-maybe () (when (and (>= (frame-width) 120) (file-exists-p treemacs-persist-file)) - (treemacs) + (treemacs-select-window) (other-window 1)))) :bind (("" . treemacs-select-window) ; Focus treemacs. ("C-" . treemacs) ; Toggle treemacs.