commit - db6a58c26ee4645239cb2de6ce4bd3fa9a4759c4
commit + e7f822269761d0a5dfe237ea4dbcb08e360f8ca2
blob - 6096d187e685889657a54a0701c7e2e1cb8e0e27
blob + 860a55fb32b299feca56e8849271b07cc9f24854
--- kshrc.lp
+++ kshrc.lp
alias mopnew="mdirs ~/Maildir/op | grep -v emacs | mlist -st | mthread -r | mseq -S; mscan"
for c in com rep fwd bnc; do
- alias m$c="VISUAL='mg -f auto-fill-mode' m$c"
+ local _mvisual='mg -f auto-fill-mode'
+ if [ -n "$DISPLAY" ]; then
+ _mvisual='emacsclient -c'
+ fi
+
+ alias m$c="VISUAL='$_mvisual' m$c"
alias o$c="m$c -from 'Omar Polo <op@openbsd.org>'"
done