changeset 420:11fdb5a60eee

emacs: bind f4 to a smarter command in .t files
author Augie Fackler <raf@durin42.com>
date Tue, 29 Nov 2016 13:29:41 -0500
parents ced3c6a3e02a
children 9a2541ec4d4d
files .elisp/settings/90.keybindings.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.elisp/settings/90.keybindings.el
+++ b/.elisp/settings/90.keybindings.el
@@ -23,7 +23,8 @@
 (defun af-dwim-f4 () (interactive)
   (cond ((string-match "\\.t$" buffer-file-name)
          (textmate-start-compile-in-root
-          (concat "make " (file-name-nondirectory buffer-file-name))))
+          (concat "cd tests && python run-tests.py --local -j 2 "
+                  (file-name-nondirectory buffer-file-name))))
         ((string-match "\\.rs$" buffer-file-name)
          (textmate-start-compile-in-root "cargo test"))
         ))