I am trying to change the default directory using emacsclient
, but it isn't working as I had hoped.
$ cd
$ emacsclient -e '(emacs-version)'
"GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10)\n of 2020-02-19"
$ emacsclient -e '(setq default-directory "/home/joe/system-test/auth/")'
"/home/joe/system-test/auth/"
M-x describe-variable
RET default-directory
RET
default-directory is a variable defined in ‘C source code’. Its value is "/home/joe/" Local in buffer shell; global value is nil