From 0bb06f052e9c36c45ab4da5b7a6d59099e59b8c4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 13 Oct 2018 13:28:13 -0400 Subject: [PATCH] Fix dashboard hiding files opened via emacsclient --- modules/ui/doom-dashboard/config.el | 7 ------- 1 file changed, 7 deletions(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index a309d3501..c53a018f6 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -196,8 +196,6 @@ PLIST can have the following properties: (add-hook 'window-size-change-functions #'+doom-dashboard|resize) (add-hook 'kill-buffer-query-functions #'+doom-dashboard|reload-on-kill) (add-hook 'doom-enter-buffer-hook #'+doom-dashboard|reload-on-kill) - (unless (daemonp) - (add-hook 'after-make-frame-functions #'+doom-dashboard|make-frame)) ;; `persp-mode' integration: update `default-directory' when switching (add-hook 'persp-created-functions #'+doom-dashboard|record-project) (add-hook 'persp-activated-functions #'+doom-dashboard|detect-project) @@ -220,11 +218,6 @@ If this is the dashboard buffer, reload the dashboard." (let (+doom-dashboard-inhibit-refresh) (ignore-errors (+doom-dashboard-reload)))))) -(defun +doom-dashboard|make-frame (frame) - "Reload the dashboard after a brief pause. This is necessary for new frames, -whose dimensions may not be fully initialized by the time this is run." - (run-with-timer 0.1 nil #'+doom-dashboard/open frame)) - (defun +doom-dashboard|resize (&rest _) "Recenter the dashboard, and reset its margins and fringes." (let ((windows (get-buffer-window-list (doom-fallback-buffer) nil t)))