Redo env setup a bit

This commit is contained in:
2014-07-08 22:23:12 +01:00
parent 1277e0468e
commit a66254fdf7
5 changed files with 27 additions and 8 deletions

16
env.el
View File

@@ -1,12 +1,12 @@
;; 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")))
;; ;; 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/v0.10.24/bin" exec-path))
(setenv "PATH" (concat "~/.nvm/v0.10.24/bin:" (getenv "PATH")))
;; ;; node.js
;; (setq exec-path (cons "~/.nvm/v0.10.24/bin" exec-path))
;; (setenv "PATH" (concat "~/.nvm/v0.10.24/bin:" (getenv "PATH")))

View File

@@ -28,6 +28,10 @@
(load-file (get-config-path "remember.el"))
(load-file (get-config-path "project-definitions.el"))
;; Load runtime specific setup files
(load-file (get-config-path "runtimes/ruby.el"))
(load-file (get-config-path "runtimes/nodejs.el"))
;; Custom variables file
(setq custom-file (get-config-path "custom-variables.el"))
(load-file custom-file)

View File

@@ -68,12 +68,14 @@
minimap
move-text
multiple-cursors
nvm
phi-search
php-mode
projectile
puppet-mode
pt
rainbow-mode
rbenv
restclient
rhtml-mode
rubocop

7
runtimes/nodejs.el Normal file
View File

@@ -0,0 +1,7 @@
;; node.js
(setq exec-path (cons "~/.nvm/v0.10.24/bin" exec-path))
;; (setenv "PATH" (concat "~/.nvm/v0.10.24/bin:" (getenv "PATH")))
(when (require 'nvm nil 'noerror)
(nvm-use "v0.10.24"))

6
runtimes/ruby.el Normal file
View File

@@ -0,0 +1,6 @@
;; rbenv
(setq exec-path (cons "~/.rbenv/bin" exec-path))
(setq exec-path (cons "~/.rbenv/shims" exec-path))
(when (require 'rbenv nil 'noerror)
(global-rbenv-mode))