我想设置一个键绑定以将日期插入缓冲区。我在我的.emacs文件中写了以下 lisp。使用date为例:
;;put the date
(global-set-key
(kbd "C-c C-d")
(shell-command "date" (current-buffer))
)
当我使用其他命令'next-line(shell-command如*scratch*.
也许我需要使用shell-command-on-region.