diff options
author | Case Duckworth | 2020-11-27 12:28:39 -0600 |
---|---|---|
committer | Case Duckworth | 2020-11-27 12:28:39 -0600 |
commit | b65659776cadb9417232c4af8db12fdff8f9ed47 (patch) | |
tree | 94d9c64bab49495a6504c5ccf798e997d454185c | |
parent | Remove ed-mode (diff) | |
download | emacs-b65659776cadb9417232c4af8db12fdff8f9ed47.tar.gz emacs-b65659776cadb9417232c4af8db12fdff8f9ed47.zip |
Add 'edit' script
-rw-r--r-- | config.org | 4 |
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 | |||
1194 | 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. | 1194 | 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. |
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 |