aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorRaul Benencia <raul@thousandeyes.com>2024-09-30 14:51:21 -0700
committerRaul Benencia <raul@thousandeyes.com>2024-09-30 14:51:49 -0700
commit66ac4d8b55d1d5ad5da6be79ad5c756345b6ac00 (patch)
tree516c42222dbda84516d8c6419a7a8c3410cc72d1 /.emacs.d
parentd4b1077b6d85b69c31abea7c8802d2adda85cdc2 (diff)
emacs: check that emacs is running before attempting a run
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/init.el6
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.
nihil fit ex nihilo