From c7166f939e3e8a84ebeda9161485dd1fd0598455 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 29 Nov 2020 09:15:58 +0100 Subject: [PATCH] Emacs: Show treemacs when creating frame from server. --- init.d/basics/ui.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.d/basics/ui.el b/init.d/basics/ui.el index 3980c3f..ede9723 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-29T08:51:14+0100> +;; Time-stamp: <2020-11-29T09:15:41+0100> ;;; Commentary: ;; * treemacs @@ -42,7 +42,9 @@ ("" . treemacs-single-click-expand-action))) :hook ((treemacs-mode . my/disable-line-numbers) (treemacs-mode . my/treemacs-set-hl-line) - (after-init . my/treemacs-show-maybe))) + (after-init . (lambda () (when (display-graphic-p) + (my/treemacs-show-maybe)))) + (server-after-make-frame . my/treemacs-show-maybe))) (use-package treemacs-projectile :demand t