summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.org6
1 files changed, 3 insertions, 3 deletions
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
1530 1530
1531*** emacsdc 1531*** emacsdc
1532 1532
1533A wrapper script around emacs-client that starts the daemon if it hasn’t been yet. 1533Here’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=.
1534 1534
1535#+begin_src sh :tangle emacsdc :shebang "#!/bin/sh" 1535#+begin_src sh :tangle bin/emacsdc :mkdirp yes :shebang "#!/bin/sh"
1536 if ! emacsclient -nc "$@" 2>/dev/null; then 1536 if ! emacsclient -nc "$@" 2>/dev/null; then
1537 emacs --daemon 1537 emacs --daemon
1538 emacsclient -nc "$@" 1538 emacsclient -nc "$@"