mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 01:33:40 +01:00
parent
eb2147c715
commit
ca0acf31ef
@ -25,6 +25,6 @@ The plugin uses a custom launcher (which we'll call here `$EMACS_LAUNCHER`) that
|
|||||||
| e | `emacs` | Same as emacs alias |
|
| e | `emacs` | Same as emacs alias |
|
||||||
| te | `$EMACS_LAUNCHER -nw` | Open terminal emacsclient |
|
| te | `$EMACS_LAUNCHER -nw` | Open terminal emacsclient |
|
||||||
| eeval | `$EMACS_LAUNCHER --eval` | Same as `M-x eval` but from outside Emacs |
|
| eeval | `$EMACS_LAUNCHER --eval` | Same as `M-x eval` but from outside Emacs |
|
||||||
| eframe | `emacsclient --alternate-editor "" --create-frame` | Create new X frame |
|
| eframe | `emacsclient --alternate-editor="" --create-frame` | Create new X frame |
|
||||||
| efile | - | Print the path to the file open in the current buffer |
|
| efile | - | Print the path to the file open in the current buffer |
|
||||||
| ecd | - | Print the directory of the file open in the the current buffer |
|
| ecd | - | Print the directory of the file open in the the current buffer |
|
||||||
|
@ -32,7 +32,7 @@ alias te="$EMACS_PLUGIN_LAUNCHER -nw"
|
|||||||
# same than M-x eval but from outside Emacs.
|
# same than M-x eval but from outside Emacs.
|
||||||
alias eeval="$EMACS_PLUGIN_LAUNCHER --eval"
|
alias eeval="$EMACS_PLUGIN_LAUNCHER --eval"
|
||||||
# create a new X frame
|
# create a new X frame
|
||||||
alias eframe='emacsclient --alternate-editor "" --create-frame'
|
alias eframe='emacsclient --alternate-editor="" --create-frame'
|
||||||
|
|
||||||
# Emacs ANSI Term tracking
|
# Emacs ANSI Term tracking
|
||||||
if [[ -n "$INSIDE_EMACS" ]]; then
|
if [[ -n "$INSIDE_EMACS" ]]; then
|
||||||
|
@ -15,11 +15,11 @@ emacsfun() {
|
|||||||
|
|
||||||
# Only create another X frame if there isn't one present
|
# Only create another X frame if there isn't one present
|
||||||
if [ -z "$frames" -o "$frames" = nil ]; then
|
if [ -z "$frames" -o "$frames" = nil ]; then
|
||||||
emacsclient --alternate-editor "" --create-frame "$@"
|
emacsclient --alternate-editor="" --create-frame "$@"
|
||||||
return $?
|
return $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
emacsclient --alternate-editor "" "$@"
|
emacsclient --alternate-editor="" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Adapted from https://github.com/davidshepherd7/emacs-read-stdin/blob/master/emacs-read-stdin.sh
|
# Adapted from https://github.com/davidshepherd7/emacs-read-stdin/blob/master/emacs-read-stdin.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user