From 2b48d25a81b77e685f1e34f83fcc49aeb3964f6e Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 22 Sep 2016 16:25:05 -0700 Subject: [PATCH] [Emacs] Set EMACS environment variable explicitly --- dotfiles/emacs.d/README.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index c381ef69..e91cff1c 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -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