commit 0da9cd66d63ab7a0c7a482610b07b7288b68bad3 parent 55db423fc17218e89f78be59fe4e18ec634fac8d Author: Iqbal Ansari <iqbalansari02@yahoo.com> Date: Sun, 1 Nov 2015 21:44:05 +0530 Make file local variables, directory local Diffstat:
A | .dir-locals.el | | | 7 | +++++++ |
M | emojify-tests.el | | | 2 | -- |
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/.dir-locals.el b/.dir-locals.el @@ -0,0 +1,7 @@ +((emacs-lisp-mode + (compile-command . "cask exec emacs -batch -l ert -l emojify-tests.el -f ert-run-tests-batch-and-exit") + (eval ignore-errors + (push (quote ("Tests" "(\\(\\<ert-deftest\\)\\>\\s *\\(\\(?:\\sw\\|\\s_\\)+\\)?" 2)) imenu-generic-expression) + (when (string-match-p "test" (buffer-file-name)) + (emojify-mode +1) + (emojify-mode -1))))) diff --git a/emojify-tests.el b/emojify-tests.el @@ -1,5 +1,3 @@ -;; -*- compile-command: "cask exec emacs -batch -l ert -l emojify-tests.el -f ert-run-tests-batch-and-exit"; -*- - (unless noninteractive (let ((default-directory (expand-file-name ".cask/"))) (normal-top-level-add-subdirs-to-load-path)))