From f67a03ec2a3a266add0060ea74bfbc203f4f7b7f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 12 May 2011 22:49:47 -0400 Subject: Play with emacs daemon mode * .bashrc: include .bash.d/* * .bash.d/emacs.sh: adjust emacsclient flags in SELECTED_EDITOR, EDITOR, and VISUAL based on $DISPLAY and $TERM * .emacs: set the font size in a way that plays nice with daemon-mode --- .bash.d/emacs.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .bash.d/emacs.sh (limited to '.bash.d') diff --git a/.bash.d/emacs.sh b/.bash.d/emacs.sh new file mode 100644 index 0000000..b3c5c53 --- /dev/null +++ b/.bash.d/emacs.sh @@ -0,0 +1,16 @@ +case "$SELECTED_EDITOR" in + emacsclient*) + if [ -n "$DISPLAY" ]; then + export VISUAL="$SELECTED_EDITOR -c" + fi + case "$TERM" in + eterm*) + SELECTED_EDITOR="$SELECTED_EDITOR -n" + EDITOR=$SELECTED_EDITOR + VISUAL=$SELECTED_EDITOR + export SELECTED_EDITOR EDITOR VISUAL + :;; + esac + :;; +esac + -- cgit v1.2.3-54-g00ecf