diff options
-rw-r--r-- | README.md | 13 | ||||
-rw-r--r-- | config.org | 15 |
2 files changed, 27 insertions, 1 deletions
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 | |||
1012 | (add-hook 'kill-emacs-hook #'acdw/refresh-emacs-no-load) | 1012 | (add-hook 'kill-emacs-hook #'acdw/refresh-emacs-no-load) |
1013 | 1013 | ||
1014 | 1014 | ||
1015 | ## Ancillary scripts | ||
1016 | |||
1017 | |||
1018 | ### emacsdc | ||
1019 | |||
1020 | A wrapper script around emacs-client that starts the daemon if it hasn’t been yet. | ||
1021 | |||
1022 | if ! emacsclient -nc "$@" 2>/dev/null; then | ||
1023 | emacs --daemon | ||
1024 | emacsclient -nc "$@" | ||
1025 | fi | ||
1026 | |||
1027 | |||
1015 | ## License | 1028 | ## License |
1016 | 1029 | ||
1017 | Copyright © 2020 Case Duckworth <acdw@acdw.net> | 1030 | Copyright © 2020 Case Duckworth <acdw@acdw.net> |
diff --git a/config.org b/config.org index 782e318..fd81816 100644 --- a/config.org +++ b/config.org | |||
@@ -4,7 +4,7 @@ | |||
4 | #+EXPORT_FILE_NAME: README.md | 4 | #+EXPORT_FILE_NAME: README.md |
5 | #+OPTIONS: toc:nil | 5 | #+OPTIONS: toc:nil |
6 | #+BANKRUPTCY_COUNT: 3 | 6 | #+BANKRUPTCY_COUNT: 3 |
7 | #+Time-stamp: <2020-12-10 17:46:10 aduckworth> | 7 | #+Time-stamp: <2020-12-10 19:54:27 acdw> |
8 | 8 | ||
9 | Let’s configure Emacs using Org mode, they said. It’ll be fun, they said. | 9 | Let’s configure Emacs using Org mode, they said. It’ll be fun, they said. |
10 | 10 | ||
@@ -1119,6 +1119,19 @@ from [[https://github.com/alphapapa/unpackaged.el#ensure-blank-lines-between-hea | |||
1119 | (add-hook 'kill-emacs-hook #'acdw/refresh-emacs-no-load) | 1119 | (add-hook 'kill-emacs-hook #'acdw/refresh-emacs-no-load) |
1120 | #+end_src | 1120 | #+end_src |
1121 | 1121 | ||
1122 | ** Ancillary scripts | ||
1123 | |||
1124 | *** emacsdc | ||
1125 | |||
1126 | A wrapper script around emacs-client that starts the daemon if it hasn’t been yet. | ||
1127 | |||
1128 | #+begin_src sh :tangle emacsdc :shebang "#!/bin/sh" | ||
1129 | if ! emacsclient -nc "$@" 2>/dev/null; then | ||
1130 | emacs --daemon | ||
1131 | emacsclient -nc "$@" | ||
1132 | fi | ||
1133 | #+end_src | ||
1134 | |||
1122 | ** License | 1135 | ** License |
1123 | :PROPERTIES: | 1136 | :PROPERTIES: |
1124 | :header-args: :tangle LICENSE :comments no | 1137 | :header-args: :tangle LICENSE :comments no |