Commit befb2c7c0018
Changed files (3)
.gitignore.d
bin
.gitignore.d/emacs-config
@@ -26,6 +26,9 @@
.emacs.d/var
.emacs.d/eshell
.emacs.d/.org-id-locations
+!bin
+!bin/emacs
+!bin/emacs-daemon
!.gnus
!.gitignore.d
!.gitignore.d/emacs-config
bin/emacs
@@ -0,0 +1,4 @@
+#!/bin/sh
+# Run emacs using emacsclient with alternate-editor pointing on emacs-daemon
+
+emacsclient --alternate-editor emacs-daemon -c $@
bin/emacs-daemon
@@ -0,0 +1,8 @@
+#!/bin/sh
+# Run emacs as daemon (and open a client afterwards)
+# Adaptation of http://pragmaticemacs.com/emacs/using-server-and-clients-for-instantaneous-startup/
+
+# Start the daemon
+/usr/bin/emacs --daemon
+
+emacsclient -c $*