summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-11-27 12:28:39 -0600
committerCase Duckworth2020-11-27 12:28:39 -0600
commitb65659776cadb9417232c4af8db12fdff8f9ed47 (patch)
tree94d9c64bab49495a6504c5ccf798e997d454185c
parentRemove ed-mode (diff)
downloademacs-b65659776cadb9417232c4af8db12fdff8f9ed47.tar.gz
emacs-b65659776cadb9417232c4af8db12fdff8f9ed47.zip
Add 'edit' script
-rw-r--r--config.org4
1 files changed, 4 insertions, 0 deletions
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
1194Here'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. 1194Here'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.
1195 1195
1196#+begin_src sh :shebang "#!/bin/sh" :tangle edit 1196#+begin_src sh :shebang "#!/bin/sh" :tangle edit
1197 if ! emacsclient -nc "$@" 2>/dev/null; then
1198 emacs --daemon
1199 emacsclient -nc "$@"
1200 fi
1197#+end_src 1201#+end_src