Various fixes with 'em' path.

master
Pierre Neidhardt 2013-05-20 12:18:25 +02:00
parent c2c305fa2d
commit c2da3eaa69
5 changed files with 7 additions and 7 deletions

View File

@ -153,7 +153,7 @@ max-visible-completions=11
hint-offset-top=0
javascript-api=automatic
mouse-cycles-through-tabs=true
tab-orientation=vertical-left
tab-orientation=horizontal
maximum-tabs=0
cookie-expiration=0
tab-width=150

View File

@ -128,8 +128,8 @@ map ep shell -w mogrify -resize 50% %s
map ev console shell mplayer "%f" -sub "%s"
map eV console shell mplayer "%f" -sub "%s" -subcp latin1
## Submarine
map es shell -w submarine %f
## Subs
map es shell -w subdl %f
## Audio
map ea shell cmus-remote -P %s

View File

@ -16,7 +16,7 @@ mkdir -p temp
if [ ! -f /bin/em ]; then
echo "==> Emacs (press Ctrl-D to skip)"
sudo sh -c "echo '#!/bin/sh
emacsclient -a \"\" -t \"\$@\"' > '/bin/em'; chmod 755 /bin/em"
emacsclient -a \"\" -t \"\$@\"' > '/bin/em'; chmod 755 /usr/local/bin/em"
echo
fi

View File

@ -109,10 +109,10 @@ alias xres='xrandr -s $(xrandr | awk '"'"'/^ / {print $1;exit}'"'"')'
## Emacs
##==============================================================================
# See .homeinit
if [ -f /bin/em ]; then
if [ -n "$(command -v em)" ]; then
alias ema='emacs -q -l ~/.emacs-light'
alias emacs-reload="emacsclient -e '(kill-emacs)' >/dev/null 2>&1; emacs --daemon"
[ -f ~/todo.org ] && alias todo='em ~/todo.org'
[ -f "$HOME/todo.org" ] && alias todo='em ~/todo.org'
fi
##==============================================================================

View File

@ -89,7 +89,7 @@ if [ -n "$(command -v emacs)" ]; then
EDITOR='emacs'
fi
## 'em' is a script for emacsclient. See 'homeinit'.
if [ -f "/bin/em" ]; then
if [ -n "$(command -v em)" ]; then
EDITOR='em'
fi
export EDITOR