Commit 1d2dfce3b3dc
Changed files (2)
bin
bin/emacs
@@ -1,4 +1,10 @@
#!/bin/sh
# Run emacs using emacsclient with alternate-editor pointing on emacs-daemon
-emacsclient --alternate-editor emacs-daemon -c $@
+ADDITIONAL_ARGS=""
+if test "$#" -eq 0; then
+ # Add a -c option if n
+ ADDITIONAL_ARGS="-c ."
+fi
+
+exec emacsclient --alternate-editor /usr/bin/emacs $ADDITIONAL_ARGS $@
bin/emacs-daemon
@@ -1,8 +0,0 @@
-#!/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 $*