branch: master
commit 5ef546ac61b7fb3a219175492e69b9f15852e6f5
Author: Ryan C. Thompson <[email protected]>
Commit: Ryan C. Thompson <[email protected]>
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.
---
async-test.el | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/async-test.el b/async-test.el
index 2e235f1..03db68e 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)