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.
This commit is contained in:
Christopher Warrington 2016-02-24 00:59:21 -08:00
parent 25f1de2839
commit dc3b2dfba7
1 changed files with 3 additions and 2 deletions

View File

@ -40,10 +40,11 @@
:prefix "markdown-preview-" :prefix "markdown-preview-"
:link '(url-link "https://github.com/ancane/markdown-preview-mode")) :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." "Markdown preview websocket server address."
:group 'markdown-preview :group 'markdown-preview
:type 'string) :type '(choice (const :tag "localhost" local)
(string :tag "Custom host")))
(defcustom markdown-preview-port 7379 (defcustom markdown-preview-port 7379
"Markdown preview websocket server port." "Markdown preview websocket server port."