Skip to content

Commit

Permalink
exec-path-from-shell resets exec-path
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wjlroe committed Nov 22, 2014
1 parent 8851aa7 commit f55a8d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kibit-mode.el
Expand Up @@ -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

0 comments on commit f55a8d9

Please sign in to comment.