Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for TRAMP configuration #37

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
1 participant
@bhagany
Copy link

commented Jun 11, 2018

This patch is necessary to allow prettier-emacs to be configured using TRAMP. If the buffer being saved is a remote file, it has a preamble that looks something like /ssh:example.com:/path/to/file. These changes strip that preamble and pass just the file path to the prettier command.

In my setup, I have ssh keys set up between my development machine and the server on which the code and the prettier executable live. My prettier-emacs config looks something like this:

(setq prettier-js-command "ssh")
(setq prettier-js-args '("example.com" "prettier"))

This configuration, in conjunction with this patch, causes things to work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.