repo.or.cz
/
james-home.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
update to new version of mr
[james-home.git]
/
bin
/
editor
blob
26237fd1fc3c20b16d0d174a8a20190fa6352783
1
#! /bin/sh
2
if
[
-z
$DISPLAY
];
then
3
OPT
=
"-t"
4
else
5
OPT
=
"-c"
6
fi
7
8
emacsclient
${OPT}
"$@"
||
(
emacs
--daemon
;
sleep
2
;
emacsclient
${OPT}
"$@"
)