export EDITOR="emacsclient -c -a emacs" doesn’t work
From:
Pankaj Jangid
Subject:
export EDITOR="emacsclient -c -a emacs" doesn’t work
Date:
Mon, 01 Feb 2021 10:36:09 +0530
User-agent:
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin)
I have ‘emacsclient’ and ‘emacs’ in PATH. I prepend the location of
these two binaries to the PATH environment variable before exporting
EDITOR environment variable. Like this in my ~/.bash_profile.
export
PATH=~/Applications/Emacs.app/Contents/MacOS:~/Applications/Emacs.app/Contents/MacOS/bin:$PATH
export EDITOR="emacsclient -c -a emacs"
Both the commands are working fine in my shell. i.e. I can run ‘emacs’
as well as ‘emacsclient -c -a emacs’ from shell.
But whenever I run any other utility, which is dependent on $EDITOR, I
get this error,
--8<---------------cut here---------------start------------->8---
$ crontab -e
crontab: emacsclient -c -a emacs: No such file or directory
crontab: "emacsclient -c -a emacs" exited with status 1
--8<---------------cut here---------------end--------------->8---
What am I missing here?
--
Regards,
Pankaj Jangid