aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-rw-r--r--emacs/bin/emacsm.sh3
-rw-r--r--emacs/profile.d/emacs.sh2
2 files changed, 5 insertions, 0 deletions
diff --git a/emacs/bin/emacsm.sh b/emacs/bin/emacsm.sh
new file mode 100644
index 00000000..58571c5c
--- /dev/null
+++ b/emacs/bin/emacsm.sh
@@ -0,0 +1,3 @@
+# Try to manage GNU emacs daemons on the terminal
+# Emphasis on "try". Man, I have no idea what I'm doing.
+emacsclient --create-frame --alternate-editor=''
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