From 2ef6316ae717c53071ceecc6e055d890ae0a0bfb Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 5 Jan 2025 16:52:44 +0000 Subject: 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. --- emacs/init.el | 9 --------- 1 file changed, 9 deletions(-) (limited to 'emacs') 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 -- cgit v1.2.3-70-g09d2