aboutsummaryrefslogtreecommitdiff
path: root/modules/test-runner.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-11-20 16:20:30 -0600
committerCraig Jennings <c@cjennings.net>2026-11-20 16:20:30 -0600
commit0b3542bc1518d43b45165bd66c1fda03eeff8bcb (patch)
tree4bcfb5c07ff1eac0c0023de44ab258bdfeae4219 /modules/test-runner.el
parent4df81e5e751cf50c45e1b82e694394ddcb133ada (diff)
downloaddotemacs-0b3542bc1518d43b45165bd66c1fda03eeff8bcb.tar.gz
dotemacs-0b3542bc1518d43b45165bd66c1fda03eeff8bcb.zip
feat(keys): move the terminal to C-; t and the test runner to C-; THEADmain
I'm in the terminal far more than I run tests, so it gets the easier key. - The terminal commands move from C-; x to C-; t. - The test runner moves from C-; t to C-; T. - C-; x is now unbound. - The terminal prefix gains a which-key label.
Diffstat (limited to 'modules/test-runner.el')
-rw-r--r--modules/test-runner.el26
1 files changed, 13 insertions, 13 deletions
diff --git a/modules/test-runner.el b/modules/test-runner.el
index 6cb35275..54d56974 100644
--- a/modules/test-runner.el
+++ b/modules/test-runner.el
@@ -6,7 +6,7 @@
;; Layer: 2 (Core UX).
;; Category: C/L.
;; Load shape: eager.
-;; Eager reason: registers the C-; t test runner entry point and state.
+;; Eager reason: registers the C-; T test runner entry point and state.
;; Top-level side effects: defines and registers cj/test-map.
;; Runtime requires: ert, cl-lib, keybindings, system-lib.
;; Direct test load: yes.
@@ -15,7 +15,7 @@
;; Test roots come from Projectile projects, falling back to the config's tests
;; directory, and test files are discovered by the test-*.el convention.
;;
-;; Commands under C-; t load tests, run all/focused tests, run the test at point,
+;; Commands under C-; T load tests, run all/focused tests, run the test at point,
;; and manage the per-project focus list.
;;; Code:
@@ -490,21 +490,21 @@ Returns the number of tests deleted."
"v" #'cj/test-view-focused
"t" #'cj/test-toggle-mode)
-(cj/register-prefix-map "t" cj/testrunner-map)
+(cj/register-prefix-map "T" cj/testrunner-map)
;; which-key integration
(with-eval-after-load 'which-key
(which-key-add-key-based-replacements
- "C-; t" "test runner menu"
- "C-; t L" "load all tests"
- "C-; t R" "run all tests"
- "C-; t r" "run smart"
- "C-; t ." "run test at point"
- "C-; t a" "add to focus"
- "C-; t b" "add buffer to focus"
- "C-; t c" "clear focus"
- "C-; t v" "view focused"
- "C-; t t" "toggle mode"))
+ "C-; T" "test runner menu"
+ "C-; T L" "load all tests"
+ "C-; T R" "run all tests"
+ "C-; T r" "run smart"
+ "C-; T ." "run test at point"
+ "C-; T a" "add to focus"
+ "C-; T b" "add buffer to focus"
+ "C-; T c" "clear focus"
+ "C-; T v" "view focused"
+ "C-; T t" "toggle mode"))
(provide 'test-runner)
;;; test-runner.el ends here