# use emacs when inside emacs if [ -n "INSIDE_EMACS" ]; then export EDITOR="emacsclient" else export EDITOR="nvim" fi