aboutsummaryrefslogtreecommitdiff
path: root/emacs/profile.d/emacs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/profile.d/emacs.sh')
-rw-r--r--emacs/profile.d/emacs.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/emacs/profile.d/emacs.sh b/emacs/profile.d/emacs.sh
new file mode 100644
index 00000000..34f6d476
--- /dev/null
+++ b/emacs/profile.d/emacs.sh
@@ -0,0 +1,2 @@
+# Start an Emacs server if we can't detect one already running
+pgrep -fx -u "$USER" 'emacs --daemon' >/dev/null || emacs --daemon