From dc3b2dfba762d5eb5ed21b6869a9668a580b97c8 Mon Sep 17 00:00:00 2001 From: Christopher Warrington Date: Wed, 24 Feb 2016 00:59:21 -0800 Subject: [PATCH] Default to 'local for markdown-preview-host * Prefer to use 'local over "127.0.0.1" to indicate localhost, as the underlying functions use 'local for localhost. * Adjust type to be a union of 'local and a string. --- markdown-preview-mode.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/markdown-preview-mode.el b/markdown-preview-mode.el index 8f45a2b..80c3d2a 100644 --- a/markdown-preview-mode.el +++ b/markdown-preview-mode.el @@ -40,10 +40,11 @@ :prefix "markdown-preview-" :link '(url-link "https://github.com/ancane/markdown-preview-mode")) -(defcustom markdown-preview-host "127.0.0.1" +(defcustom markdown-preview-host 'local "Markdown preview websocket server address." :group 'markdown-preview - :type 'string) + :type '(choice (const :tag "localhost" local) + (string :tag "Custom host"))) (defcustom markdown-preview-port 7379 "Markdown preview websocket server port."