Mercurial > dotfiles
diff .elisp/settings/90.keybindings.el @ 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 | 1cda3348f36b |
children | eff0298b770d |
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")) ))