emacs: Make sure frame is focused on launch on darwin

This commit is contained in:
Charlotte Van Petegem 2024-07-19 11:26:17 +02:00
parent 15586a8f7c
commit 1436dfae51
3 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,10 @@
(use-package emacs-on-darwin
:ensure nil ;; Not a real package, but a place to collect global settings for darwin
:demand t
:config
(defun focus-frame ()
(select-frame-set-input-focus (selected-frame)))
(if (daemonp)
(add-hook 'server-after-make-frame-hook #'focus-frame))
)