summaryrefslogtreecommitdiff
path: root/dotfiles-darwin/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles-darwin/emacs/init.el')
-rw-r--r--dotfiles-darwin/emacs/init.el10
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))