From f55a8d9c5d26ef96c5f5327f45d7dc2937f04543 Mon Sep 17 00:00:00 2001 From: William Roe Date: Sat, 22 Nov 2014 23:04:59 +0000 Subject: [PATCH] exec-path-from-shell resets exec-path This ensures that kibit-mode-path is added back to exec-path once exec-path-from-shell-initialize is run. I have this in my init.d config and it could be useful for others too. If exec-path-from-shell isn't installed, this should do nothing. --- kibit-mode.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kibit-mode.el b/kibit-mode.el index fe61b1e..b5cc2b0 100644 --- a/kibit-mode.el +++ b/kibit-mode.el @@ -133,5 +133,9 @@ Emacs Lisp package.")) :modes 'clojure-mode))) (add-to-list 'flycheck-checkers 'clojure-kibit))) +(eval-after-load 'exec-path-from-shell + '(defadvice exec-path-from-shell-initialize (after reset-kibit-path activate) + (add-to-list 'exec-path (concat kibit-mode-path "bin")))) + (provide 'kibit-mode) ;;; kibit-mode.el ends here