Updated emacsremote-post to include the -f argument for emacsclient.
This commit is contained in:
parent
0c597b3f11
commit
d15b94d40a
|
@ -152,14 +152,16 @@ for p in "${@}"; do
|
|||
fi
|
||||
fi
|
||||
done
|
||||
emacsclient "${params[@]}"
|
||||
emacsclient -f ~/.emacs.d/server/server "${params[@]}"
|
||||
{{< / highlight >}}
|
||||
----
|
||||
|
||||
== Shell configuration
|
||||
|
||||
Now we should set `VISUAL` and `EDITOR` to the wrapper and set up some nice,
|
||||
short aliases. In my examples I assume we called our wrapper `emacsremote`.
|
||||
short aliases. In my examples I assume we called our wrapper `emacsremote`. The
|
||||
argument `-f` causes emacsclient to not try to use UNIX domain sockets (and
|
||||
print an error message).
|
||||
|
||||
NOTE: I wrote the following code for Zsh, but it should also work for Bash.
|
||||
|
||||
|
@ -167,7 +169,7 @@ NOTE: I wrote the following code for Zsh, but it should also work for Bash.
|
|||
{{< highlight zsh >}}
|
||||
# Set preferred editor.
|
||||
if which emacsclient > /dev/null; then
|
||||
VISUAL="$(which emacsclient) -a emacs"
|
||||
VISUAL="$(which emacsclient) -f ~/.emacs.d/server/server -a emacs"
|
||||
if [[ -n "${SSH_CONNECTION}" ]]; then # Logged in via SSH.
|
||||
if which emacsremote > /dev/null; then
|
||||
VISUAL="$(which emacsremote)"
|
||||
|
@ -214,3 +216,7 @@ preserve the environment variable `SSH_CONNECTION`.
|
|||
echo 'Defaults env_keep += "SSH_CONNECTION"' >> /etc/sudoers.d/ssh_vars
|
||||
{{< / highlight >}}
|
||||
----
|
||||
|
||||
== Updates
|
||||
|
||||
* Updated on 2019-05-12 to include the `-f` argument for emacsclient.
|
||||
|
|
Loading…
Reference in New Issue
Block a user