about summary refs log tree commit diff stats
path: root/config.org
diff options
context:
space:
mode:
Diffstat (limited to 'config.org')
-rw-r--r--config.org5
1 files changed, 4 insertions, 1 deletions
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
1356** Ancillary scripts 1356** Ancillary scripts
1357 1357
1358*** emacsdc 1358*** emacsdc
1359:PROPERTY:
1360:header-args: :tangle bin/emacsdc :tangle-mode (identity #o755)
1361:END:
1359 1362
1360Here's a wrapper script that'll start =emacs --daemon= if there isn't 1363Here's a wrapper script that'll start =emacs --daemon= if there isn't
1361one, and then launch =emacsclient= with the arguments. I'd recommend 1364one, and then launch =emacsclient= with the arguments. I'd recommend
1362installing with either ~ln -s bin/emacsdc $HOME/.local/bin/~, or 1365installing with either ~ln -s bin/emacsdc $HOME/.local/bin/~, or
1363adding =$HOME/.local/bin= to your =$PATH=. 1366adding =$HOME/.local/bin= to your =$PATH=.
1364 1367
1365#+BEGIN_SRC sh :tangle bin/emacsdc :mkdirp yes :shebang "#!/bin/sh" 1368#+BEGIN_SRC sh :shebang "#!/bin/sh"
1366if ! emacsclient -nc "$@" 2>/dev/null; then 1369if ! emacsclient -nc "$@" 2>/dev/null; then
1367 emacs --daemon 1370 emacs --daemon
1368 emacsclient -nc "$@" 1371 emacsclient -nc "$@"