From 8abfd0f81870f5ebb130bfe3ef6fe4a5ca0c0d99 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 7 Apr 2020 01:01:25 +0100 Subject: [PATCH] Always run emacs in 24bit color mode in terminal --- bin/emacsclient-wrapper | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/emacsclient-wrapper b/bin/emacsclient-wrapper index 9bfe2b4..114120c 100755 --- a/bin/emacsclient-wrapper +++ b/bin/emacsclient-wrapper @@ -6,8 +6,9 @@ ALTERNATE_EDITOR="nano" # Set to binary bundled in Emacs.app if it exists if [ -f "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient" ]; then - EMACSCLIENT="env TERM=screen-24bit /Applications/Emacs.app/Contents/MacOS/bin/emacsclient" + EMACSCLIENT="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient" fi # Execute emacsclient -exec $EMACSCLIENT --alternate-editor=$ALTERNATE_EDITOR "$@" +exec env TERM=screen-24bit \ + $EMACSCLIENT --alternate-editor=$ALTERNATE_EDITOR "$@"