Created
July 9, 2010 03:42
-
-
Save pao/468997 to your computer and use it in GitHub Desktop.
Emacs stunts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Insert this into a non-login .rc file (.bashrc is good) | |
export EDITOR="emacsclient_smartframe.sh" | |
alias edit="${EDITOR} -n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ `emacsclient -a "" -e "(length (frame-list))"` -gt 1 ]; then | |
emacsclient -d ${DISPLAY} $@ | |
else | |
emacsclient -c -d ${DISPLAY} $@ | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment