From: Ryan C. Thompson Date: Sun, 20 Oct 2013 23:44:37 +0000 (-0700) Subject: Have test file add its own directory to load path X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/5ef546ac61b7fb3a219175492e69b9f15852e6f5 Have test file add its own directory to load path This makes it so that one can do "emacs -batch -l async-test.el ..." without having to also add "-l async.el -l async-file.el" at the command line. --- diff --git a/async-test.el b/async-test.el index 2e235f109..03db68eda 100644 --- a/async-test.el +++ b/async-test.el @@ -29,6 +29,7 @@ ;;; Code: +(add-to-list 'load-path (file-name-directory (or load-file-name (buffer-file-name)))) (require 'async) (require 'async-file)