From f604a23a5b3890e7c499880589afd523eb3dcc06 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Sun, 14 Dec 2014 10:56:19 -0800 Subject: add missing shabang --- source/_posts/2014-12-14-speeding-up-emacs-with-emacsclient.md | 1 + 1 file changed, 1 insertion(+) (limited to 'source/_posts/2014-12-14-speeding-up-emacs-with-emacsclient.md') 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 -- cgit v1.2.1