diff --git a/Eask b/Eask index f0e7e38..2aa3378 100644 --- a/Eask +++ b/Eask @@ -26,3 +26,12 @@ (funcall-interactively #'treesit-install-language-grammar 'typescript)) (add-hook 'eask-before-test/ert-hook #'install-treesit-languages) + +;; Define command to install the package in the local emacs config (~/.emacs.d/elpa) +(eask-defcommand install-in-emacs-local-config + (let ((package-dir (file-name-directory (locate-library "jtsx"))) + (target-dir (expand-file-name "~/.emacs.d/elpa/"))) + (copy-directory package-dir target-dir) + (message "Installed in %s." (concat target-dir + (file-name-nondirectory + (directory-file-name package-dir)))))) diff --git a/Makefile b/Makefile index 82d24bf..225cae9 100644 --- a/Makefile +++ b/Makefile @@ -40,10 +40,10 @@ test_all: @echo "Testing against all Emacs versions..." (cd tests && ./run-tests.bash) -# copy: -# @echo "Copying in .emacs.d/elpa..." -# $(EASK) install - +cross_install: + @echo "Cross installing in .emacs.d/elpa..." + $(EASK) install + $(EASK) run command install-in-emacs-local-config clean: $(EASK) clean all