From 4adb408bbfc064408f343073ec799678a0d1d79e Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 2 Dec 2020 18:42:16 -0600 Subject: Reorganize Appendix A and where to save scripts Scripts now go in =emacs.d/bin/=, and there might be more of them later. --- config.org | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index 7c9b7b8..d429f5b 100644 --- a/config.org +++ b/config.org @@ -1646,11 +1646,13 @@ I've just recently started (again) using mu4e. We'll see how it goes. #+end_src -* Appendix A: ~emacsdc~ script +* Appendix A: Scripts + +** ~emacsdc~ 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 emacsdc +#+begin_src sh :shebang "#!/bin/sh" :tangle bin/emacsdc if ! emacsclient -nc "$@" 2>/dev/null; then emacs --daemon emacsclient -nc "$@" -- cgit 1.4.1-21-gabe81