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 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
1184 (0x0-default-service 'ttm)) 1184 (0x0-default-service 'ttm))
1185#+END_SRC 1185#+END_SRC
1186 1186
1187* Appendix A: ~edit~ script 1187* Appendix A: ~emacsdc~ script
1188 1188
1189Here'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. 1189Here'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~!
1190 1190
1191#+begin_src sh :shebang "#!/bin/sh" :tangle edit 1191#+begin_src sh :shebang "#!/bin/sh" :tangle emacsdc
1192 if ! emacsclient -nc "$@" 2>/dev/null; then 1192 if ! emacsclient -nc "$@" 2>/dev/null; then
1193 emacs --daemon 1193 emacs --daemon
1194 emacsclient -nc "$@" 1194 emacsclient -nc "$@"