diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2014-12-14 10:56:19 -0800 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2014-12-22 18:01:03 -0800 |
commit | f604a23a5b3890e7c499880589afd523eb3dcc06 (patch) | |
tree | 279f7ebe1a3e617dab4b39cb689b74cae7b1d915 /source/_posts/2014-12-14-speeding-up-emacs-with-emacsclient.md | |
parent | f23add066558de8261528b9866e9c45542daa754 (diff) | |
download | my_new_personal_website-f604a23a5b3890e7c499880589afd523eb3dcc06.tar.xz my_new_personal_website-f604a23a5b3890e7c499880589afd523eb3dcc06.zip |
add missing shabang
Diffstat (limited to '')
-rw-r--r-- | source/_posts/2014-12-14-speeding-up-emacs-with-emacsclient.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/_posts/2014-12-14-speeding-up-emacs-with-emacsclient.md b/source/_posts/2014-12-14-speeding-up-emacs-with-emacsclient.md index 2baeaf25..1ce00879 100644 --- a/source/_posts/2014-12-14-speeding-up-emacs-with-emacsclient.md +++ b/source/_posts/2014-12-14-speeding-up-emacs-with-emacsclient.md @@ -10,6 +10,7 @@ Emacs is notorious for its loading time. For me, this is especially annoying whe This problem can be solved by "using that same Emacs", i.e., running Emacs in server mode, then connecting to the server via `emacsclient`. Below is my script, which I call `emc`, to make `emacsclient` more user-friendly. `emc` opens a file (given as `$1`) on the server, launching one on its way if none is detected. Note that I used `-cqt` for `emacsclient`. The `-c` option is `--create-frame`, i.e., create a new frame (in the current tty, for instance) instead of using the existing frame (in another tty, for instance); this allows for multiple frames accross different ttys. The `-q` option is for `--quiet`, suppressing messages like "Waiting for Emacs..." The `-t` option is for `--tty`, or equivalently, the familiar `-nw` option of `emacs`. Note that `emacsclient` requires a filename, so my script prompts for one if `$1` is empty. ``` bash emc +#!/usr/bin/env bash if [[ -n $1 ]]; then file=$1 else |