# HG changeset patch # User Augie Fackler # Date 1550796895 18000 # Node ID 8373f6924e50aac40062f404d708842edf50c6c8 # Parent 6bc0149667311297550342a97517f8e29b0d2ac5 emacs: kludge around a case of emacs being too clever for me diff --git a/.elisp/settings/90.keybindings.el b/.elisp/settings/90.keybindings.el --- 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"))