]> code.delx.au - gnu-emacs-elpa/commitdiff
Have test file add its own directory to load path
authorRyan C. Thompson <rct@thompsonclan.org>
Sun, 20 Oct 2013 23:44:37 +0000 (16:44 -0700)
committerRyan C. Thompson <rct@thompsonclan.org>
Sun, 20 Oct 2013 23:44:37 +0000 (16:44 -0700)
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.

async-test.el

index 2e235f109aa98d1c6b2261252a2e12b8224fcfad..03db68eda9c3e5dfdbffa8ce565658b043c7b84c 100644 (file)
@@ -29,6 +29,7 @@
 \f
 ;;; Code:
 
+(add-to-list 'load-path (file-name-directory (or load-file-name (buffer-file-name))))
 (require 'async)
 (require 'async-file)