fix rails command

This commit is contained in:
Otávio Schwanck 2020-11-12 21:55:15 -03:00
parent f7293fb67e
commit a460c1e364
2 changed files with 2 additions and 10 deletions

View file

@ -7,7 +7,6 @@
- [[#description][Description]]
- [[#module-flags][Module Flags]]
- [[#packages][Packages]]
- [[#hacks][Hacks]]
- [[#prerequisites][Prerequisites]]
- [[#ubuntu][Ubuntu]]
- [[#macos][MacOS]]
@ -48,12 +47,6 @@ This module add Ruby and optional Ruby on Rails support to Emacs.
+ [[https://github.com/eschulte/jump.el/tree/e4f1372cf22e811faca52fc86bdd5d817498a4d8][inflections]]
+ [[https://github.com/plexus/chruby.el][chruby]] (=+chruby=)
** Hacks
+ =projectile-rails-custom-server-command= were changed to suppress extraneous output logged
to console. This was done to prevent a memory leak where the underlying
process would continue logging to an Emacs buffer, which would grow forever. You can change to default behaviour by
setting this variable to =nil=.
* Prerequisites
Many of this modules plugins require ruby with some version manager (RVM or
Rbenv) and the rubocop gem.
@ -96,4 +89,3 @@ The rspec-mode prefix is =SPC m t=. Here is some examples:
|-----------------------+------------------+-----------------------------------|
| ~rspec-verify~ | =SPC m t v= | Runs rspec on current file |
| ~rspec-verify-method~ | =SPC m t s= | Runs rspec for the item on cursor |

View file

@ -97,7 +97,7 @@
(setq rake-completion-system 'default)
(map! :after ruby-mode
:localleader
:map ruby-mode-map
:map ruby-mode-map
:prefix ("k" . "rake")
"k" #'rake
"r" #'rake-rerun
@ -185,7 +185,7 @@
:hook (projectile-rails-mode . auto-insert-mode)
:init
(setq auto-insert-query nil)
(setq projectile-rails-custom-server-command "bundle exec spring rails server --no-log-to-stdout")
(setq projectile-rails-custom-server-command "bundle exec spring rails server")
(setq inf-ruby-console-environment "development")
(when (featurep! :lang web)
(add-hook 'web-mode-hook #'projectile-rails-mode))