From d5fc9af5c807c4bea2b53ef61b6131d4d770984f Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 29 Nov 2020 15:50:02 +0100 Subject: [PATCH] Emacs: Only show treemacs in the first frame. --- init.d/basics/ui.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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.