diff options
| author | 2026-04-29 16:37:31 -0700 | |
|---|---|---|
| committer | 2026-04-29 16:37:31 -0700 | |
| commit | bc89b47342250b93314aa3f10c43f5cdd20a7e00 (patch) | |
| tree | c87205fdc1741882e568f38f6fc0178eb708c2f4 | |
| parent | 9fe123b53b9845f8874f9c054730dfd52bfb38f1 (diff) | |
| download | new-dotfiles-bc89b47342250b93314aa3f10c43f5cdd20a7e00.tar.gz new-dotfiles-bc89b47342250b93314aa3f10c43f5cdd20a7e00.zip | |
pop-os: Add custom compilation mode for artisan tests
| -rw-r--r-- | oni/home/config/pop-os/emacs.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/oni/home/config/pop-os/emacs.el b/oni/home/config/pop-os/emacs.el index 1a54f92..e8e2e54 100644 --- a/oni/home/config/pop-os/emacs.el +++ b/oni/home/config/pop-os/emacs.el @@ -165,6 +165,11 @@ buffers.") (?p "punt" "Punt") (?f "filament" "Filament"))))) +(require 'compile) + +(define-compilation-mode artisan-test-mode "Artisan Test" + "Major mode for PHP artisan test output.") + (cl-defun artisan-run-test (name &key file filter stop-on-failure-p) (interactive (let* ((refresh current-prefix-arg) @@ -186,7 +191,7 @@ buffers.") (or file ""))))) (cl-letf (((symbol-function 'compilation-buffer-name) (lambda (&rest _) buffer-name))) - (compile command)) + (compilation-start command 'artisan-test-mode)) (with-current-buffer buffer (setq artisan--test-last-state (list :file file :filter filter :stop-on-failure-p stop-on-failure-p)) |
