Ade rope to ruby

This commit is contained in:
Maciej Szlosarczyk 2017-08-17 16:56:09 +03:00
parent bc1138eb06
commit bfeb3a7f83
No known key found for this signature in database
GPG key ID: 0D4EEACF63D4262E
3 changed files with 14 additions and 1 deletions

2
emacs
View file

@ -22,7 +22,7 @@
'(hl-paren-colors (quote ("#ecf0f1" "#ecf0f1" "#c0392b")))
'(package-selected-packages
(quote
(company-jedi pyenv pyenv-mode toml-mode color-theme-approximate smex yaml-mode web-mode ujelly-theme smart-mode-line scala-mode rvm ruby-end rainbow-mode rainbow-delimiters racer noctilux-theme monokai-theme markdown-mode less-css-mode json-reformat jade-mode indent-guide helm-themes helm-projectile helm-ag haskell-mode haml-mode groovy-mode flycheck flatui-theme exec-path-from-shell evil-nerd-commenter evil-magit evil-leader elpy dumb-jump dockerfile-mode diff-hl column-enforce-mode base16-theme avk-emacs-themes atom-one-dark-theme all-the-icons alchemist aggressive-indent ag)))
(robe elm-yasnippets elm-mode company-jedi pyenv pyenv-mode toml-mode color-theme-approximate smex yaml-mode web-mode ujelly-theme smart-mode-line scala-mode rvm ruby-end rainbow-mode rainbow-delimiters racer noctilux-theme monokai-theme markdown-mode less-css-mode json-reformat jade-mode indent-guide helm-themes helm-projectile helm-ag haskell-mode haml-mode groovy-mode flycheck flatui-theme exec-path-from-shell evil-nerd-commenter evil-magit evil-leader elpy dumb-jump dockerfile-mode diff-hl column-enforce-mode base16-theme avk-emacs-themes atom-one-dark-theme all-the-icons alchemist aggressive-indent ag)))
'(safe-local-variable-values (quote ((encoding . utf-8))))
'(sml/active-background-color "#34495e")
'(sml/active-foreground-color "#ecf0f1")

View file

@ -23,6 +23,15 @@
;; Do not insert encoding comments ;;
(setq ruby-insert-encoding-magic-comment nil)
;; Use robe
(defadvice inf-ruby-console-auto (before activate-rvm-for-robe activate)
(rvm-activate-corresponding-ruby))
(eval-after-load 'company
'(push 'company-robe company-backends))
(add-hook 'ruby-mode-hook 'robe-mode)
;; Use web-mode for erb
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))

View file

@ -183,6 +183,10 @@
(package-refresh-contents)
(package-install 'less-css-mode))
(unless (package-installed-p 'robe)
(package-refresh-contents)
(package-install 'robe))
; Web mode for editing erb
(unless (package-installed-p 'web-mode)
(package-refresh-contents)