comparison .elisp/settings/90.keybindings.el @ 482:0731ceeb27dd

emacs: run hg tests under python3 by default now
author Augie Fackler <raf@durin42.com>
date Tue, 07 Jan 2020 16:49:47 -0500
parents 8373f6924e50
children
comparison
equal deleted inserted replaced
481:b2a3bee0d975 482:0731ceeb27dd
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 ;; hack alert: the leading `echo` here prevents emacs from 26 ;; hack alert: the leading `echo` here prevents emacs from
27 ;; being too smart and "fixing" our default-directory. 27 ;; being too smart and "fixing" our default-directory.
28 (concat "echo && cd tests && python run-tests.py --local " 28 (concat "echo && cd tests && python3 run-tests.py --local "
29 (file-name-nondirectory buffer-file-name)))) 29 (file-name-nondirectory buffer-file-name))))
30 ((string-match "\\.rs$" buffer-file-name) 30 ((string-match "\\.rs$" buffer-file-name)
31 (textmate-start-compile-in-root "cargo test")) 31 (textmate-start-compile-in-root "cargo test"))
32 )) 32 ))
33 (global-set-key [f2] 'other-window) 33 (global-set-key [f2] 'other-window)