怎么 hack emacs 能使得它绑定一个快捷自动添加一段注释含有作者, 文件修改信息

比如我要自动产生这样一个注释:

/*
* @author: xxx
* @last-change-time: xxxx(year):xx(month):xx(day)
*/

感谢lijigang的帮助哈

;; 这是一种解决方案
(defun test-signature ()
 (interactive "r")
 (insert "/*\n@author: Arthur\n")
 (insert "@last-change-time: " (format-time-string "%Y:%m:%d"))
 (insert "\n*/"))

(test-signature)

可以看下这里.

好的,谢谢哈~ 我回去看下的.

https://www.emacswiki.org/emacs/AutomaticFileHeaders