commit efd0831858f5399a970bb0b0de08764166beef59 parent b3c56b7ed0aa41bae4b98db7135c1a9f33ed0c71 Author: Iqbal Ansari <iqbalansari02@yahoo.com> Date: Sun, 28 Jan 2018 19:30:26 +0530 Add a simple elisp file to easily run an Emacs instance with emojify loaded Diffstat:
A | test/launch.el | | | 21 | +++++++++++++++++++++ |
1 file changed, 21 insertions(+), 0 deletions(-)
diff --git a/test/launch.el b/test/launch.el @@ -0,0 +1,21 @@ +;; A simple configuration file to launch a standalone instance of Emacs +;; with just emojify and it's dependencies installed +;; +;; Do something like the following +;; +;; cask exec emacs -Q -l test/launch.el +;; +(let ((project-dir (locate-dominating-file (or (buffer-file-name) load-file-name) + ".cask"))) + (if (not project-dir) + (user-error "Could not locate project root") + (let ((default-directory (expand-file-name (format ".cask/%d.%d" + emacs-major-version + emacs-minor-version) + project-dir))) + (normal-top-level-add-subdirs-to-load-path)) + (add-to-list 'load-path project-dir))) + +(require 'emojify) + +(setq emojify-emojis-dir (make-temp-file "emojify" t))