Skip to content

Commit aaca59a

Browse files
committed
Set up with default.
1 parent 66e704b commit aaca59a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docstr.el

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
;; (@* "Customization" )
5252
;;
5353

54-
(defconst docstr-key-type "#T" "String key that going to replace type name.")
55-
(defconst docstr-key-var "#V" "String key that going to replace variable name.")
56-
(defconst docstr-key-desc "#D" "String key that going to replace description.")
54+
(defconst docstr-key-type "#T#" "String key that going to replace type name.")
55+
(defconst docstr-key-var "#V#" "String key that going to replace variable name.")
56+
(defconst docstr-key-desc "#D#" "String key that going to replace description.")
5757

5858
(defcustom docstr-format-type "{ %s }"
5959
"Format string for type name section inside document string."
@@ -65,12 +65,14 @@
6565
:type 'string
6666
:group 'docstr)
6767

68-
(defcustom docstr-format-param "@param #T #V #D"
68+
(defcustom docstr-format-param
69+
(format "@param %s %s %s" docstr-key-type docstr-key-var docstr-key-desc)
6970
"Format string for parameter document string."
7071
:type 'string
7172
:group 'docstr)
7273

73-
(defcustom docstr-format-return "@return #T #V #D"
74+
(defcustom docstr-format-return
75+
(format "@return %s %s %s" docstr-key-type docstr-key-var docstr-key-desc)
7476
"Format string for return document string."
7577
:type 'string
7678
:group 'docstr)

0 commit comments

Comments
 (0)