Last active
April 14, 2023 17:07
-
-
Save typoman/b559c76fdea5fc18dedc5626fd39f30b to your computer and use it in GitHub Desktop.
Run the script from doom emacs inside RoboFont using the key sequence "leader r f"
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 run-robofont () | |
"Run current python file inside roboFont." | |
(interactive) | |
(when (eq major-mode 'python-mode) | |
(let ((file-path (buffer-file-name))) | |
(when file-path | |
(shell-command (concat "roboFont '" file-path "';open '/Applications/RoboFont.app'")))))) | |
(map! :map python-mode-map | |
:leader | |
:desc "Run in RoboFont" "r f" #'run-robofont) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment