dotfiles/zsh/funcs/editor
2021-03-04 11:18:40 -05:00

27 lines
521 B
Text

function edit() {
local editor
printf -v editor "emacsclient -a=\"\" \"\$@\""
echo $editor
eval "${editor}"
}
function editc() {
local editor
printf -v editor "emacsclient -c -a=\"\" \"\$@\""
echo $editor
eval "${editor}"
}
function editn() {
local editor
printf -v editor "emacsclient -n -a=\"\" \"\$@\""
echo $editor
eval "${editor}"
}
function editcn() {
local editor
printf -v editor "emacsclient -cn -a=\"\" \"\$@\""
echo $editor
eval "${editor}"
}