Commit befb2c7c0018

Vincent Demeester <vincent@sbr.pm>
2015-05-20 08:42:55
Add emacs & emacs-daemon commands :)
1 parent 467e9e7
Changed files (3)
.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 $*