From fd47074ff08091ec9cf3ef253b08183e26b50583 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 2 Jan 2021 15:34:36 -0600 Subject: Move header-args to Property drawer --- config.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 46eda15..eae8fe0 100644 --- a/config.org +++ b/config.org @@ -1356,13 +1356,16 @@ I realized I didn’t need =early-init.el=, since it really only set =load-prefe ** Ancillary scripts *** emacsdc +:PROPERTY: +:header-args: :tangle bin/emacsdc :tangle-mode (identity #o755) +:END: 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" +#+BEGIN_SRC sh :shebang "#!/bin/sh" if ! emacsclient -nc "$@" 2>/dev/null; then emacs --daemon emacsclient -nc "$@" -- cgit 1.4.1-21-gabe81