aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-rw-r--r--emacs/bin/emacsm.sh3
-rw-r--r--emacs/emacs6
-rw-r--r--emacs/profile.d/emacs.sh2
3 files changed, 8 insertions, 3 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/emacs b/emacs/emacs
index 637f8053..ea13faa9 100644
--- a/emacs/emacs
+++ b/emacs/emacs
@@ -26,9 +26,9 @@
backup-directory-alist `(("." . ,(concat user-emacs-directory "backups")))
)
-;; A few more options I've found around the web
+;; Show a scratch buffer rather than the startup hints
(customize-set-variable 'inhibit-startup-screen t)
+
+;; Show line and column number in status bar
(column-number-mode 1)
(line-number-mode 1)
-(menu-bar-mode -1)
-(tool-bar-mode -1)
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