From b65659776cadb9417232c4af8db12fdff8f9ed47 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 27 Nov 2020 12:28:39 -0600 Subject: Add 'edit' script --- config.org | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.org b/config.org index 3acf955..7ccbabe 100644 --- a/config.org +++ b/config.org @@ -1194,4 +1194,8 @@ from [[https://github.com/alphapapa/unpackaged.el#org-return-dwim][unpackaged.el 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. #+begin_src sh :shebang "#!/bin/sh" :tangle edit + if ! emacsclient -nc "$@" 2>/dev/null; then + emacs --daemon + emacsclient -nc "$@" + fi #+end_src -- cgit 1.4.1-21-gabe81