diff options
author | Raul Benencia <raul@thousandeyes.com> | 2024-09-30 14:51:21 -0700 |
---|---|---|
committer | Raul Benencia <raul@thousandeyes.com> | 2024-09-30 14:51:49 -0700 |
commit | 66ac4d8b55d1d5ad5da6be79ad5c756345b6ac00 (patch) | |
tree | 516c42222dbda84516d8c6419a7a8c3410cc72d1 | |
parent | d4b1077b6d85b69c31abea7c8802d2adda85cdc2 (diff) |
emacs: check that emacs is running before attempting a run
-rw-r--r-- | .emacs.d/init.el | 6 |
1 files changed, 4 insertions, 2 deletions
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. |