From da5498edaa27715a8f5f8c1a28d7605bddfb5987 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 27 Nov 2020 13:17:49 -0600 Subject: Rename edit -> emacsdc --- config.org | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.org b/config.org index 95e6c61..f41baf6 100644 --- a/config.org +++ b/config.org @@ -1184,11 +1184,11 @@ from [[https://github.com/alphapapa/unpackaged.el#org-return-dwim][unpackaged.el (0x0-default-service 'ttm)) #+END_SRC -* Appendix A: ~edit~ script +* Appendix A: ~emacsdc~ script -Here's a wrapper script that'll start =emacs --daemon= if there isn't one, and then launche =emacsclient= on the arguments. I'd recommend installing with ~ln -s edit ~/.local/bin/~ or something. +Here's a wrapper script that'll start =emacs --daemon= if there isn't one, and then launche =emacsclient= on the arguments. I'd recommend installing with ~ln -s emacsdc ~/.local/bin/~ or something. Then you can set it as your ~$EDITOR~! -#+begin_src sh :shebang "#!/bin/sh" :tangle edit +#+begin_src sh :shebang "#!/bin/sh" :tangle emacsdc if ! emacsclient -nc "$@" 2>/dev/null; then emacs --daemon emacsclient -nc "$@" -- cgit 1.4.1-21-gabe81