From 50560f9610c8e2effe2ba1ad2b17765e6cfdce96 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 9 Jan 2013 21:23:05 +0100 Subject: [PATCH] .homeinit: fix. --- .homeinit | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.homeinit b/.homeinit index 46e3e7be..504ba305 100755 --- a/.homeinit +++ b/.homeinit @@ -22,9 +22,10 @@ SOURCEDIR="${HOME}/personal/dataperso" ## Emacsclient launcher. Required for best emacsclient integration. For a fully ## functional daemon, you should write a file like this and set 'EDITOR=em'. -if [ ! -f /bin/em ]; then +if [ -f /bin/em ]; then + echo "==> Emacs" sudo sh -c "echo '#!/bin/sh -emacsclient -a \"\" -t \"\$@\"' > '/bin/em'" +emacsclient -a \"\" -t \"\$@\"' > '/bin/em'; chmod 755 /bin/em" fi ## Mutt