Skip to content

Instantly share code, notes, and snippets.

@typoman
Last active April 14, 2023 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save typoman/b559c76fdea5fc18dedc5626fd39f30b to your computer and use it in GitHub Desktop.
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"
(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