diff options
author | Evgeni Kolev <evgenysw@gmail.com> | 2023-01-14 08:28:06 +0200 |
---|---|---|
committer | Theodor Thornhill <theo@thornhill.no> | 2023-01-21 21:25:46 +0100 |
commit | f0971f94fe42224b4d85bb8b6188d5d805689ddf (patch) | |
tree | ab2441ed0dc49b9210878cb043631d8b4cc155db /lisp/emacs-lisp/generate-lisp-file.el | |
parent | cb07f1bcd0f3a1af58f8d4d65d96949e20dfa569 (diff) | |
download | emacs-f0971f94fe42224b4d85bb8b6188d5d805689ddf.tar.gz emacs-f0971f94fe42224b4d85bb8b6188d5d805689ddf.tar.bz2 emacs-f0971f94fe42224b4d85bb8b6188d5d805689ddf.zip |
Extend go-ts-mode with command to add docstring to function
go-ts-mode is extended with command go-ts-mode-docstring which adds
docstring comment to the defun at point. If a comment already exists,
the point is instead moved to the top-most comment line. The command
is bound to "C-c C-d".
* lisp/progmodes/go-ts-mode.el (go-ts-mode): Extend docstring.
(go-ts-mode-docstring): New function.
(go-ts-mode--comment-on-previous-line-p): New function.
(go-ts-mode-map): New map variable.
* etc/NEWS: Mention the change.
(bug#60805)
Diffstat (limited to 'lisp/emacs-lisp/generate-lisp-file.el')
0 files changed, 0 insertions, 0 deletions