mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
29 lines
729 B
EmacsLisp
29 lines
729 B
EmacsLisp
;;; siren-env.el --- jimeh's Emacs Siren: Environment variable setup.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Setup for various environment variables to ensure external programs are
|
|
;; available.
|
|
|
|
;;; Code:
|
|
|
|
;; Nix package manager
|
|
(push "~/.nix-profile/bin" exec-path)
|
|
|
|
;; Homebrew
|
|
(push "/usr/local/bin" exec-path)
|
|
|
|
;; rbenv
|
|
(setq exec-path (cons "~/.rbenv/bin" exec-path))
|
|
(setenv "PATH" (concat "~/.rbenv/bin:" (getenv "PATH")))
|
|
(setq exec-path (cons "~/.rbenv/shims" exec-path))
|
|
(setenv "PATH" (concat "~/.rbenv/shims:" (getenv "PATH")))
|
|
|
|
;; node.js
|
|
(setq exec-path (cons "~/.nvm/versions/node/v5.4.0/bin" exec-path))
|
|
(setenv "PATH" (concat "~/.nvm/versions/node/v5.4.0/bin:" (getenv "PATH")))
|
|
|
|
|
|
(provide 'siren-env)
|
|
;;; siren-env.el ends here
|