diff options
author | Case Duckworth | 2021-01-02 15:34:36 -0600 |
---|---|---|
committer | Case Duckworth | 2021-01-02 15:34:36 -0600 |
commit | fd47074ff08091ec9cf3ef253b08183e26b50583 (patch) | |
tree | f05cd92c2198bf39b0b299f2f63640889022c529 | |
parent | Use org-link-minor-mode (diff) | |
download | emacs-fd47074ff08091ec9cf3ef253b08183e26b50583.tar.gz emacs-fd47074ff08091ec9cf3ef253b08183e26b50583.zip |
Move header-args to Property drawer
-rw-r--r-- | config.org | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config.org b/config.org index 46eda15..eae8fe0 100644 --- a/config.org +++ b/config.org | |||
@@ -1356,13 +1356,16 @@ I realized I didn’t need =early-init.el=, since it really only set =load-prefe | |||
1356 | ** Ancillary scripts | 1356 | ** Ancillary scripts |
1357 | 1357 | ||
1358 | *** emacsdc | 1358 | *** emacsdc |
1359 | :PROPERTY: | ||
1360 | :header-args: :tangle bin/emacsdc :tangle-mode (identity #o755) | ||
1361 | :END: | ||
1359 | 1362 | ||
1360 | Here's a wrapper script that'll start =emacs --daemon= if there isn't | 1363 | Here's a wrapper script that'll start =emacs --daemon= if there isn't |
1361 | one, and then launch =emacsclient= with the arguments. I'd recommend | 1364 | one, and then launch =emacsclient= with the arguments. I'd recommend |
1362 | installing with either ~ln -s bin/emacsdc $HOME/.local/bin/~, or | 1365 | installing with either ~ln -s bin/emacsdc $HOME/.local/bin/~, or |
1363 | adding =$HOME/.local/bin= to your =$PATH=. | 1366 | adding =$HOME/.local/bin= to your =$PATH=. |
1364 | 1367 | ||
1365 | #+BEGIN_SRC sh :tangle bin/emacsdc :mkdirp yes :shebang "#!/bin/sh" | 1368 | #+BEGIN_SRC sh :shebang "#!/bin/sh" |
1366 | if ! emacsclient -nc "$@" 2>/dev/null; then | 1369 | if ! emacsclient -nc "$@" 2>/dev/null; then |
1367 | emacs --daemon | 1370 | emacs --daemon |
1368 | emacsclient -nc "$@" | 1371 | emacsclient -nc "$@" |