pico-8 tweaks

This commit is contained in:
John Doty 2022-04-06 10:35:37 -07:00
parent 9252041c46
commit 6310bdd831
2 changed files with 8 additions and 8 deletions

View file

@ -702,12 +702,6 @@
;; =================================================================
;; Python Support
;; =================================================================
(autoload 'python-mode "python-mode" "Python editing mode." t)
(autoload 'blacken-mode "blacken" "Automatically run black before saving." t)
(add-to-list 'auto-mode-alist '("\\.py$" . python-mode))
(add-to-list 'interpreter-mode-alist '("python" . python-mode))
(defun my-python-mode-hook ()
"My hook for `python-mode`."
(when is-fb-environment
@ -716,9 +710,15 @@
(string-match-p "TARGETS" (buffer-file-name)))
(blacken-mode)))
(add-hook 'python-mode-hook 'my-python-mode-hook)
(use-package python-mode :ensure
:mode "\\.py\\'"
:config
(add-to-list 'interpreter-mode-alist '("python" . python-mode))
(add-hook 'python-mode-hook 'my-python-mode-hook))
(autoload 'blacken-mode "blacken" "Automatically run black before saving." t)
;; =================================================================
;; JavaScript Support