diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2025-01-05 16:52:44 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2025-01-05 16:52:44 +0000 |
| commit | 2ef6316ae717c53071ceecc6e055d890ae0a0bfb (patch) | |
| tree | d9b9bcffa06656093bd5d36406e2d6561d4bf72e /dotfiles-darwin/emacs/init.el | |
| parent | 381e8aab7c28f0e58e26c80a7e67836a69ccd047 (diff) | |
darwin/emacs: Tweak when the server is started
Only start the server if it is not running already and the current
display is a graphical display.
Diffstat (limited to 'dotfiles-darwin/emacs/init.el')
| -rw-r--r-- | dotfiles-darwin/emacs/init.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dotfiles-darwin/emacs/init.el b/dotfiles-darwin/emacs/init.el index dc78758..b0ef91a 100644 --- a/dotfiles-darwin/emacs/init.el +++ b/dotfiles-darwin/emacs/init.el @@ -15,6 +15,16 @@ :custom (org-roam-directory "~/Documents/ZK/")) +;; Server + +(use-package server + :config + (defun my/server-start () + (when (and (display-graphic-p) (not (server-running-p))) + (server-start))) + :hook (after-init . my/server-start)) + + ;; Theme Management (when (or window-system (daemonp)) |
