[emacs] Add django-run-tests support

This commit is contained in:
Colin Powell
2026-01-08 15:40:44 -05:00
parent 6088816b2e
commit ec2a7a0efd
2 changed files with 79 additions and 0 deletions

View File

@ -25,6 +25,15 @@
(advice-add 'org-agenda :before #'vulpea-agenda-files-update)
(advice-add 'org-todo-list :before #'vulpea-agenda-files-update)
(load! "+django-tests")
(map! :after python
:map python-mode-map
:localleader
(:prefix ("t" . "tests")
:desc "django test at point" "d" #'django-run-test-at-point
:desc "django tests for file" "f" #'django-run-tests-for-current-file
:desc "django all tests" "a" (cmd! (django-run-tests "" nil))))
(setq +format-on-save-disabled-modes (add-to-list '+format-on-save-disabled-modes 'typescript-mode))
(map! ;; Easier window movement