emacs.d

bloated emacs configuration
git clone git://git.ckyln.com/~cem/emacs.d.git
Log | Files | Refs | README

commit 79c56df09c3434fb02621f75de3638b0725fdd8d
parent b67ef801ccc3a8fffad1abc0683023c83c8c9d54
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon,  6 Jul 2020 14:26:20 +0300

emc: fix this mess

Diffstat:
Minit.org | 14+++-----------
1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/init.org b/init.org @@ -215,22 +215,14 @@ I used to have an alias for running emacsclient, now I use a tiny script for it. #+BEGIN_SRC sh :tangle emc :tangle-mode (identity #o755) #!/bin/sh - EMACSCLIENT_EXTRA_OPTIONS="${EMACSCLIENT_EXTRA_OPTIONS}" - tty >/dev/null 2>&1 && EMACSCLIENT_EXTRA_OPTIONS="$EMACSCLIENT_EXTRA_OPTIONS -nw" - - for opt do - EMACSCLIENT_EXTRA_OPTIONS="$EMACSCLIENT_EXTRA_OPTIONS $opt" - done - - # We want word splitting - # shellcheck disable=2086 - exec emacsclient --alternate-editor='' -c $EMACSCLIENT_EXTRA_OPTIONS + tty >/dev/null 2>&1 && set -- -nw "$@" + exec emacsclient --alternate-editor='' -c "$@" #+END_SRC You can install the generated emc script by doing #+BEGIN_SRC sh :tangle no - install -Dm755 -t ~/.local/bin emc + install -Dm755 emc ~/.local/bin/emc #+END_SRC #+BEGIN_SRC emacs-lisp