Mercurial > dotfiles
changeset 477:8373f6924e50
emacs: kludge around a case of emacs being too clever for me
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Thu, 21 Feb 2019 19:54:55 -0500 |
parents | 6bc014966731 |
children | 6bcdbe7b8e42 |
files | .elisp/settings/90.keybindings.el |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/.elisp/settings/90.keybindings.el +++ b/.elisp/settings/90.keybindings.el @@ -23,7 +23,9 @@ (defun af-dwim-f4 () (interactive) (cond ((string-match "\\.t$" buffer-file-name) (textmate-start-compile-in-root - (concat "cd tests && python run-tests.py --local " + ;; hack alert: the leading `echo` here prevents emacs from + ;; being too smart and "fixing" our default-directory. + (concat "echo && cd tests && python run-tests.py --local " (file-name-nondirectory buffer-file-name)))) ((string-match "\\.rs$" buffer-file-name) (textmate-start-compile-in-root "cargo test"))