mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-16 01:16:45 +08:00
Add new plugin emacs, to take benefit of daemon capabilities of emacs >=23
This commit is contained in:
1 parent
bbf1f87ee6
commit
2fba4486bf
2 files changed
+21
No files matched your search
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Starts emacs daemon if not already started.
|
||||
|
||||
x=`emacsclient --alternate-editor '' --eval '(x-display-list)' 2>/dev/null`
|
||||
if [ -z "$x" ] ;then
|
||||
emacsclient --alternate-editor "" --create-frame $@
|
||||
else
|
||||
emacsclient --alternate-editor "" $@
|
||||
fi
|
||||
Reference in new issue
Block a user