Allow rails and ruby to be controlled from emacs

This commit is contained in:
Tom Willemse 2014-11-24 23:03:38 +01:00
parent 99ea6160f1
commit 34c361cc66
3 changed files with 12 additions and 14 deletions

View file

@ -77,6 +77,7 @@
(depends-on "rainbow-delimiters") (depends-on "rainbow-delimiters")
(depends-on "rainbow-mode") (depends-on "rainbow-mode")
(depends-on "request") (depends-on "request")
(depends-on "rinari")
(depends-on "rust-mode") (depends-on "rust-mode")
(depends-on "scss-mode") (depends-on "scss-mode")
(depends-on "smex") (depends-on "smex")

View file

@ -1147,37 +1147,30 @@ from myaethon2.core.decorators import (
(prodigy-define-service (prodigy-define-service
:name "Picturefix mollie-bank" :name "Picturefix mollie-bank"
:command "bundle" :command "mollie-bank"
:args '("exec" "mollie-bank")
:cwd "~/projects/work/photension/picturefix" :cwd "~/projects/work/photension/picturefix"
:path '("~/.rbenv/shims")
:tags '(work) :tags '(work)
:kill-signal 'sigkill) :kill-signal 'sigkill)
(prodigy-define-service (prodigy-define-service
:name "Picturefix" :name "Picturefix"
:command "bundle" :command "rails"
:args '("exec" "rails" "s") :args '("server")
:cwd "~/projects/work/photension/picturefix" :cwd "~/projects/work/photension/picturefix"
:path '("~/.rbenv/shims")
:tags '(work) :tags '(work)
:kill-signal 'sigkill) :kill-signal 'sigkill)
(prodigy-define-service (prodigy-define-service
:name "Picturefix sidekiq" :name "Picturefix sidekiq"
:command "bundle" :command "sidekiq"
:args '("exec" "sidekiq")
:cwd "~/projects/work/photension/picturefix" :cwd "~/projects/work/photension/picturefix"
:path '("~/.rbenv/shims")
:tags '(work) :tags '(work)
:kill-signal 'sigkill) :kill-signal 'sigkill)
(prodigy-define-service (prodigy-define-service
:name "Picturefix mailcatcher" :name "Picturefix mailcatcher"
:command "bundle" :command "mailcatcher"
:args '("exec" "mailcatcher")
:cwd "~/projects/work/photension/picturefix" :cwd "~/projects/work/photension/picturefix"
:path '("~/.rbenv/shims")
:tags '(work) :tags '(work)
:kill-signal 'sigkill)) :kill-signal 'sigkill))
@ -1453,6 +1446,9 @@ from myaethon2.core.decorators import (
(require 'colemak-evil)) (require 'colemak-evil))
(global-evil-surround-mode)) (global-evil-surround-mode))
(with-eval-after-load 'ruby
(global-rinari-mode))
(when (equal system-name "drd") (when (equal system-name "drd")
(load "eap-autoloads")) (load "eap-autoloads"))

View file

@ -11,8 +11,6 @@ INFOPATH="$INFOPATH:/usr/share/info"
INFOPATH="$INFOPATH:/usr/local/share/info" INFOPATH="$INFOPATH:/usr/local/share/info"
export INFOPATH export INFOPATH
systemctl --user import-environment PATH INFOPATH
DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/`id -u`/bus" DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/`id -u`/bus"
export DBUS_SESSION_BUS_ADDRESS export DBUS_SESSION_BUS_ADDRESS
@ -22,3 +20,6 @@ fi
# Load RVM into a shell session as a func # Load RVM into a shell session as a func
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
systemctl --user import-environment PATH INFOPATH GEM_HOME GEM_PATH \
MY_RUBY_HOME IRBRC RUBYOPT gemset