From 66ac4d8b55d1d5ad5da6be79ad5c756345b6ac00 Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Mon, 30 Sep 2024 14:51:21 -0700 Subject: emacs: check that emacs is running before attempting a run --- .emacs.d/init.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index eee3a56..ff2d3fa 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -61,8 +61,10 @@ ;; Initialize environment ;; ------ -(setenv "TMPDIR" (concat (getenv "HOME") "/tmp")) -(add-hook 'after-init-hook #'server-start) +(require 'server) +(setq server-client-instructions nil) +(unless (server-running-p) + (server-start)) ;; ------ ;; Helper for compilation. -- cgit v1.2.3