I would like to be able to hit <Print Screen>
in emacs and trigger a commit in a git repository. My lisp is pretty rusty and know this is broken, but don't know where:
( 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 )
Currently it is binding to ^1 because I don't know how to represent the <Print Screen>
button.