summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.org6
1 files 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.
1646 1646
1647#+end_src 1647#+end_src
1648 1648
1649* Appendix A: ~emacsdc~ script 1649* Appendix A: Scripts
1650
1651** ~emacsdc~
1650 1652
1651Here'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~! 1653Here'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~!
1652 1654
1653#+begin_src sh :shebang "#!/bin/sh" :tangle emacsdc 1655#+begin_src sh :shebang "#!/bin/sh" :tangle bin/emacsdc
1654 if ! emacsclient -nc "$@" 2>/dev/null; then 1656 if ! emacsclient -nc "$@" 2>/dev/null; then
1655 emacs --daemon 1657 emacs --daemon
1656 emacsclient -nc "$@" 1658 emacsclient -nc "$@"