Last active
December 17, 2017 19:23
-
-
Save leavesofgrass/021878ab0a209c34a699296786f69a2c to your computer and use it in GitHub Desktop.
Elisp function to flash Keyboardio Model 01 firmware in a shell.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun kaleidoscope-shell-flash () | |
(interactive) | |
(shell "*kaleidoscope-shell*") | |
(goto-char (point-max)) | |
(comint-kill-input) | |
(insert "cd ~/kaleidoscope/Kaleidoscope") | |
(comint-send-input) | |
(goto-char (point-max)) | |
(comint-kill-input) | |
(insert "sudo make flash") | |
(comint-send-input)) | |
(global-set-key (kbd "<f12>") 'kaleidoscope-shell-flash) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment