【发布时间】:2010-06-23 17:01:17
【问题描述】:
我希望能够在 emacs 中点击 <Print Screen> 并在 git 存储库中触发提交。我的口齿不清,知道这是坏的,但不知道在哪里:
( defun tip-local-write nil "Write to store" ( interactive )
( save-buffer )
( change-directory "~/tip" )
( shell-command "git commit -m checkpoint ." )
( shell-command "git submodule foreach git commit -m checkpoint . \\\|\\\| true" ) ) )
( global-set-key [?\M-1] 'tip-local-write )
目前它绑定到 ^1,因为我不知道如何表示 <Print Screen> 按钮。
【问题讨论】:
标签: emacs elisp key-bindings