From 60a283942c69f7c50a79959f17274cd0c2e48499 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 10 Dec 2020 19:57:06 -0600 Subject: Add emacsdc --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 1347bdc..4b21784 100644 --- a/README.md +++ b/README.md @@ -1012,6 +1012,19 @@ from [unpackaged.el](https://github.com/alphapapa/unpackaged.el#ensure-blank-lin (add-hook 'kill-emacs-hook #'acdw/refresh-emacs-no-load) +## Ancillary scripts + + +### emacsdc + +A wrapper script around emacs-client that starts the daemon if it hasn’t been yet. + + if ! emacsclient -nc "$@" 2>/dev/null; then + emacs --daemon + emacsclient -nc "$@" + fi + + ## License Copyright © 2020 Case Duckworth -- cgit 1.4.1-21-gabe81