lang/emacs-lisp: add test localleader keys for buttercup
This commit is contained in:
parent
7d9e844e35
commit
a47351c58f
2 changed files with 28 additions and 1 deletions
|
@ -101,6 +101,19 @@ if it's callable, `apropos' otherwise."
|
|||
(bury-buffer buf)
|
||||
buf)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +emacs-lisp/buttercup-run-file ()
|
||||
"Run all buttercup tests in the focused buffer."
|
||||
(interactive)
|
||||
(let ((load-path (append (list (doom-path (dir!) "..")
|
||||
(or (doom-project-root)
|
||||
default-directory))
|
||||
load-path)))
|
||||
(save-selected-window
|
||||
(eval-buffer)
|
||||
(buttercup-run))
|
||||
(message "File executed successfully")))
|
||||
|
||||
|
||||
;;
|
||||
;;; Hooks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue