From 851206361bf77455ed8de3b3f704ac3fbb853f91 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 22 Dec 2020 20:34:13 -0600 Subject: Change emacsdc header --- config.org | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config.org') diff --git a/config.org b/config.org index 639bbc4..938a072 100644 --- a/config.org +++ b/config.org @@ -1530,9 +1530,9 @@ from [[https://karthinks.com/software/more-batteries-included-with-emacs/#regexp *** emacsdc -A wrapper script around emacs-client that starts the daemon if it hasn’t been yet. - -#+begin_src sh :tangle emacsdc :shebang "#!/bin/sh" +Here’s a wrapper script that’ll start =emacs –daemon= if there isn’t one, and then launch =emacsclient= with the arguments. I’d recommend installing with either ~ln -s bin/emacsdc $HOME/.local/bin/~, or adding =$HOME/.local/bin= to your =$PATH=. + +#+begin_src sh :tangle bin/emacsdc :mkdirp yes :shebang "#!/bin/sh" if ! emacsclient -nc "$@" 2>/dev/null; then emacs --daemon emacsclient -nc "$@" -- cgit 1.4.1-21-gabe81