phobos.el: declare a customization group
This commit is contained in:
parent
05f482e7dc
commit
a50c278fa3
1 changed files with 21 additions and 8 deletions
29
phobos.el
29
phobos.el
|
@ -23,14 +23,27 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(defvar phobos-browser "xdg-open"
|
(defgroup phobos nil
|
||||||
"Web browser to use when opening documentation with `phobos'.")
|
"View D documentation from within Emacs."
|
||||||
(defvar phobos-root "https://dlang.org/library"
|
:prefix "phobos-"
|
||||||
"Root URL to use when viewing documentation with `phobos'.")
|
:group 'languages)
|
||||||
(defvar phobos-dpldocs-domain "dpldocs.info"
|
|
||||||
"Root domain to use when viewing documentation on dub packages with `dub-doc'.")
|
(defcustom phobos-browser "xdg-open"
|
||||||
(defvar phobos-registry-root "https://code.dlang.org"
|
"Web browser to use when opening documentation with `phobos'."
|
||||||
"Root URL of the D package registry used with `describe-dub-package'.")
|
:group 'phobos
|
||||||
|
:type 'string)
|
||||||
|
(defcustom phobos-root "https://dlang.org/library"
|
||||||
|
"Root URL to use when viewing documentation with `phobos'."
|
||||||
|
:group 'phobos
|
||||||
|
:type 'string)
|
||||||
|
(defcustom phobos-dpldocs-domain "dpldocs.info"
|
||||||
|
"Root domain to use when viewing documentation on dub packages with `dub-doc'."
|
||||||
|
:group 'phobos
|
||||||
|
:type 'string)
|
||||||
|
(defcustom phobos-registry-root "https://code.dlang.org"
|
||||||
|
"Root URL of the D package registry used with `describe-dub-package'."
|
||||||
|
:group 'phobos
|
||||||
|
:type 'string)
|
||||||
|
|
||||||
(defun phobos--visit (&rest format-args)
|
(defun phobos--visit (&rest format-args)
|
||||||
(let ((url (apply #'format format-args)))
|
(let ((url (apply #'format format-args)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue