Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docstrings according to checkdoc #67

Merged
merged 2 commits into from
Oct 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions json-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Return the new `auto-mode-alist' entry"
".bowerrc"
"composer.lock"
)
"List of filename as string to pass for the JSON entry of `auto-mode-alist'.
"List of filenames for the JSON entry of `auto-mode-alist'.

Note however that custom `json-mode' entries in `auto-mode-alist'
won’t be affected."
Expand Down Expand Up @@ -169,14 +169,15 @@ json font lock syntactic face function."

;;;###autoload
(defun json-mode-show-path ()
"Print the path to the node at point to the minibuffer, and yank to the kill ring."
"Print the path to the node at point to the minibuffer."
(interactive)
(message (jsons-print-path)))

(define-key json-mode-map (kbd "C-c C-p") 'json-mode-show-path)

;;;###autoload
(defun json-mode-kill-path ()
"Save JSON path to object at point to kill ring."
(interactive)
(kill-new (jsons-print-path)))

Expand Down