Skip to content

Commit f7511fc

Browse files
committed
Supply entries.
1 parent 1e1224f commit f7511fc

File tree

9 files changed

+91
-3
lines changed

9 files changed

+91
-3
lines changed

clients/docstr-actionscript.el

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,15 @@
3636
:type 'string
3737
:group 'docstr)
3838

39+
(defun docstr-actionscript-config ()
40+
"Automatically configure style according to variable `docstr-actionscript-style'."
41+
(cl-case docstr-actionscript-style
42+
(t (docstr-util-default-format))))
43+
3944
;;;###autoload
4045
(defun docstr-writers-actionscript (search-string)
4146
"Insert document string for ActionScript using SEARCH-STRING."
47+
(docstr-actionscript-config)
4248
(let* ((start (point)) (prefix docstr-actionscript-prefix)
4349
(paren-param-list (docstr-writers--paren-param-list-behind search-string ":"))
4450
(param-types (nth 0 paren-param-list))

clients/docstr-c++.el

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,26 @@
2626

2727
(require 'docstr)
2828

29+
(defcustom docstr-c++-style nil
30+
"Style specification for document string in C++."
31+
:type '(choice (const :tag "No specify" nil))
32+
:group 'docstr)
33+
34+
(defcustom docstr-c++-prefix "* "
35+
"Prefix you use on each newline."
36+
:type 'string
37+
:group 'docstr)
38+
39+
(defun docstr-c++-config ()
40+
"Automatically configure style according to variable `docstr-c++-style'."
41+
(cl-case docstr-c++-style
42+
(t (docstr-util-default-format))))
43+
2944
;;;###autoload
3045
(defun docstr-writers-c++ (search-string)
3146
"Insert document string for C++ using SEARCH-STRING."
32-
(let* ((start (point)) (prefix "\n* ")
47+
(docstr-c++-config)
48+
(let* ((start (point)) (prefix docstr-c++-prefix)
3349
(paren-param-list (docstr-writers--paren-param-list search-string))
3450
(param-types (nth 0 paren-param-list))
3551
(param-vars (nth 1 paren-param-list))

clients/docstr-c.el

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,25 @@
2828

2929
(declare-function docstr-writers-c++ "ext:docstr-c.el")
3030

31+
(defcustom docstr-c-style nil
32+
"Style specification for document string in C."
33+
:type '(choice (const :tag "No specify" nil))
34+
:group 'docstr)
35+
36+
(defcustom docstr-c-prefix "* "
37+
"Prefix you use on each newline."
38+
:type 'string
39+
:group 'docstr)
40+
41+
(defun docstr-c-config ()
42+
"Automatically configure style according to variable `docstr-c-style'."
43+
(cl-case docstr-c-style
44+
(t (docstr-util-default-format))))
45+
3146
;;;###autoload
3247
(defun docstr-writers-c (search-string)
3348
"Insert document string for C using SEARCH-STRING."
49+
(docstr-c-config)
3450
(docstr-writers-c++ search-string))
3551

3652
(provide 'docstr-c)

clients/docstr-groovy.el

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,20 @@
2828

2929
(declare-function docstr-writers-javascript "ext:docstr-js.el")
3030

31+
(defcustom docstr-groovy-style nil
32+
"Style specification for document string in Groovy."
33+
:type '(choice (const :tag "No specify" nil))
34+
:group 'docstr)
35+
36+
(defun docstr-groovy-config ()
37+
"Automatically configure style according to variable `docstr-groovy-style'."
38+
(cl-case docstr-groovy-style
39+
(t (docstr-util-default-format))))
40+
3141
;;;###autoload
3242
(defun docstr-writers-groovy (search-string)
3343
"Insert document string for Groovy using SEARCH-STRING."
44+
(docstr-groovy-config)
3445
(docstr-writers-javascript search-string))
3546

3647
(provide 'docstr-groovy)

clients/docstr-lua.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
:group 'docstr)
4545

4646
(defun docstr-lua-config-lua-wiki ()
47-
""
47+
"Configre for convention, Lua-Users Wiki."
4848
(docstr-util-default-format)
4949
(setq-local docstr-lua-prefix "-- "))
5050

clients/docstr-php.el

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,19 @@
2929
(declare-function docstr-writers-javascript "ext:docstr-js.el")
3030

3131
(defcustom docstr-php-style nil
32-
"Style specification for document string in PGP."
32+
"Style specification for document string in PHP."
3333
:type '(choice (const :tag "No specify" nil))
3434
:group 'docstr)
3535

36+
(defun docstr-php-config ()
37+
"Automatically configure style according to variable `docstr-php-style'."
38+
(cl-case docstr-php-style
39+
(t (docstr-util-default-format))))
40+
3641
;;;###autoload
3742
(defun docstr-writers-php (search-string)
3843
"Insert document string for PHP using SEARCH-STRING."
44+
(docstr-php-config)
3945
(docstr-writers-javascript search-string))
4046

4147
(provide 'docstr-php)

clients/docstr-rust.el

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,20 @@
2626

2727
(require 'docstr)
2828

29+
(defcustom docstr-rust-style nil
30+
"Style specification for document string in Rust."
31+
:type '(choice (const :tag "No specify" nil))
32+
:group 'docstr)
33+
34+
(defun docstr-rust-config ()
35+
"Automatically configure style according to variable `docstr-rust-style'."
36+
(cl-case docstr-rust-style
37+
(t (docstr-util-default-format))))
38+
2939
;;;###autoload
3040
(defun docstr-writers-rust (search-string)
3141
"Insert document string for Rust using SEARCH-STRING."
42+
(docstr-rust-config)
3243
(let* ((start (point)) (prefix "\n* ")
3344
(paren-param-list (docstr-writers--paren-param-list-behind search-string ":" t))
3445
(param-types (nth 0 paren-param-list))

clients/docstr-scala.el

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,20 @@
2828

2929
(declare-function docstr-writers-rust "ext:docstr-rust.el")
3030

31+
(defcustom docstr-scala-style nil
32+
"Style specification for document string in Scala."
33+
:type '(choice (const :tag "No specify" nil))
34+
:group 'docstr)
35+
36+
(defun docstr-scala-config ()
37+
"Automatically configure style according to variable `docstr-scala-style'."
38+
(cl-case docstr-scala-style
39+
(t (docstr-util-default-format))))
40+
3141
;;;###autoload
3242
(defun docstr-writers-scala (search-string)
3343
"Insert document string for Scala using SEARCH-STRING."
44+
(docstr-scala-config)
3445
(docstr-writers-rust search-string))
3546

3647
(provide 'docstr-scala)

clients/docstr-typescript.el

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,20 @@
2828

2929
(declare-function docstr-writers-actionscript "ext:docstr-actionscript.el")
3030

31+
(defcustom docstr-typescript-style nil
32+
"Style specification for document string in TypeScript."
33+
:type '(choice (const :tag "No specify" nil))
34+
:group 'docstr)
35+
36+
(defun docstr-typescript-config ()
37+
"Automatically configure style according to variable `docstr-typescript-style'."
38+
(cl-case docstr-typescript-style
39+
(t (docstr-util-default-format))))
40+
3141
;;;###autoload
3242
(defun docstr-writers-typescript (search-string)
3343
"Insert document string for TypesSript using SEARCH-STRING."
44+
(docstr-typescript-config)
3445
(docstr-writers-actionscript search-string))
3546

3647
(provide 'docstr-typescript)

0 commit comments

Comments
 (0)