diff --git a/init.d/basics/ui.el b/init.d/basics/ui.el index b66861c..208f4dd 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-29T11:51:57+0100> +;; Time-stamp: <2020-11-29T15:49:11+0100> ;;; Commentary: ;; * treemacs @@ -30,7 +30,8 @@ 'hl-line-treemacs-face)) (defun my/treemacs-show-maybe () (when (and (>= (frame-width) 120) - (file-exists-p treemacs-persist-file)) + (file-exists-p treemacs-persist-file) + (<= (length (frame-list)) 2)) (treemacs-select-window) (other-window 1)))) :bind (("" . treemacs-select-window) ; Focus treemacs.