8 zstyle
-a ':ganneff:config' editors editors \
10 "emacs-snapshot -Q -D -nw" # Fast emacs
11 "emacs24 -Q -D -nw" # Fast emacs
12 "emacs23 -Q -D -nw" # Fast emacs
13 "emacs22 -Q -D -nw" # Fast emacs
17 for editor
in $editors; do
18 (( $
+commands
[$editor[(w
)1]] )) && {
19 # Some programs may not like to have arguments
20 if [[ $editor == *\
* ]]; then
21 export EDITOR
=$ZDOTDIR/run
/editor-
$HOST-$UID
36 # Maybe use emacsclient?
37 if zstyle
-T ':ganneff:config' emacsclient
; then
38 (( $
+commands
[emacsclient
] )) && {
39 export ALTERNATE_EDITOR
=$EDITOR
40 export EDITOR
=$ZDOTDIR/run
/eeditor-
$HOST-$UID
43 exec emacsclient -t "\$@"