[Emacs] Set EMACS environment variable explicitly

This commit is contained in:
Ivan Malison 2016-09-22 16:25:05 -07:00
parent 2d472d8d18
commit 2b48d25a81
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -255,6 +255,14 @@ Ensure by default since most of the package for which I use use-package need to
#+BEGIN_SRC emacs-lisp
(setq use-package-always-ensure t)
#+END_SRC
** Set EMACS environment variable
Emacs cask seems to depend on the EMACS environment variable being set to the
binary path of emacs. I found the method for getting the path to the emacs
executable [[http://emacs.stackexchange.com/questions/6010/can-emacs-detect-the-path-of-its-executable][here]].
#+BEGIN_SRC emacs-lisp
(setenv "EMACS"
(file-truename (expand-file-name invocation-name invocation-directory)))
#+END_SRC
* Functions
** Join Paths
Works in the same way as os.path.join in python