Mercurial > dotfiles
comparison .elisp/settings/90.keybindings.el @ 476:6bc014966731
emacs: hg's run-tests is smart enough to guess -j now
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 20 Feb 2019 16:19:46 -0500 |
parents | eff0298b770d |
children | 8373f6924e50 |
comparison
equal
deleted
inserted
replaced
475:f08193904d93 | 476:6bc014966731 |
---|---|
21 | 21 |
22 (global-set-key [f3] 'next-error) | 22 (global-set-key [f3] 'next-error) |
23 (defun af-dwim-f4 () (interactive) | 23 (defun af-dwim-f4 () (interactive) |
24 (cond ((string-match "\\.t$" buffer-file-name) | 24 (cond ((string-match "\\.t$" buffer-file-name) |
25 (textmate-start-compile-in-root | 25 (textmate-start-compile-in-root |
26 (concat "cd tests && python run-tests.py --local -j 2 " | 26 (concat "cd tests && python run-tests.py --local " |
27 (file-name-nondirectory buffer-file-name)))) | 27 (file-name-nondirectory buffer-file-name)))) |
28 ((string-match "\\.rs$" buffer-file-name) | 28 ((string-match "\\.rs$" buffer-file-name) |
29 (textmate-start-compile-in-root "cargo test")) | 29 (textmate-start-compile-in-root "cargo test")) |
30 )) | 30 )) |
31 (global-set-key [f2] 'other-window) | 31 (global-set-key [f2] 'other-window) |