From b518daf01042642bd3a05b42bcc5de101f8747e9 Mon Sep 17 00:00:00 2001 From: Igor Shymko Date: Thu, 22 Dec 2016 18:17:17 +0200 Subject: [PATCH] readme updated on remote access --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f191d77..1445117 100644 --- a/README.md +++ b/README.md @@ -34,14 +34,22 @@ Markdown preview in emacs features: * `customize-option markdown-preview-host` - change http/websocket server address. * `customize-option markdown-preview-ws-port` - change websocket server port. * `customize-option markdown-preview-http-port` - change http server port. +* `customize-option markdown-preview-auto-open` - change the way preview window is open. + +## Remote access + +* Set `markdown-preview-auto-open` to `nil` to disable window opening at remote emacs server. +* Start `markdown-preview-mode`. Http link for preview will be printed to *Messages*. If not - run `markdown-preview-open-browser` to get the link printed. +* Setup 2 tunnels for `0.0.0.0:7379` and `0.0.0.0:9000` and then open preview link in local browser. Adjust tunnels according to your custom `ws-port` and `http-port` settings. ## Extra css ### Add extra css to default solarized dark theme + ```lisp (add-to-list 'markdown-preview-stylesheets "https://raw.githubusercontent.com/richleland/pygments-css/master/emacs.css") ``` -### Override theme completely with +### Override theme completely ```lisp (setq markdown-preview-stylesheets (list "http://thomasf.github.io/solarized-css/solarized-light.min.css"))