summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2025-01-05 16:52:44 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2025-01-05 16:52:44 +0000
commit2ef6316ae717c53071ceecc6e055d890ae0a0bfb (patch)
treed9b9bcffa06656093bd5d36406e2d6561d4bf72e /emacs
parent381e8aab7c28f0e58e26c80a7e67836a69ccd047 (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 'emacs')
-rw-r--r--emacs/init.el9
1 files changed, 0 insertions, 9 deletions
diff --git a/emacs/init.el b/emacs/init.el
index d1652ea..fe0cbff 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -48,15 +48,6 @@
(use-package marginalia :config (marginalia-mode 1) :ensure t)
-(advice-add #'server-start :around
- #'(lambda (orig &rest args)
- (let ((socket (expand-file-name server-name server-socket-dir)))
- (unless (and (boundp 'server-process)
- (file-readable-p socket))
- (apply orig args)))))
-
-(add-hook 'after-init-hook #'server-start)
-
;; Buffer Management