emacs-emojify

fork of https://github.com/iqbalansari/emacs-emojify
Log | Files | Refs | LICENSE

launch.el (872B)


      1 ;; A simple configuration file to launch a standalone instance of Emacs
      2 ;; with just emojify and it's dependencies installed
      3 ;;
      4 ;; Do something like the following
      5 ;;
      6 ;; cask exec emacs -Q -l test/launch.el
      7 ;;
      8 (let ((project-dir (locate-dominating-file (or (buffer-file-name) load-file-name)
      9                                            ".cask")))
     10   (if (not project-dir)
     11       (user-error "Could not locate project root")
     12     (let ((default-directory (expand-file-name (format ".cask/%d.%d"
     13                                                        emacs-major-version
     14                                                        emacs-minor-version)
     15                                                project-dir)))
     16       (normal-top-level-add-subdirs-to-load-path))
     17     (add-to-list 'load-path project-dir)))
     18 
     19 (require 'emojify)
     20 
     21 (setq emojify-emojis-dir (make-temp-file "emojify" t))