Update ruby mode and change themes to white ones

This commit is contained in:
Maciej 2021-07-09 19:52:37 +03:00
parent 1d35210c86
commit e1b64159ab
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
4 changed files with 20 additions and 9 deletions

View file

@ -19,21 +19,22 @@
(set-indent 2)
;; Disable reek syntax checking permanently
(add-to-list (make-local-variable 'flycheck-disabled-checkers) 'ruby-reek)
(add-to-list (make-local-variable 'flycheck-disabled-checkers) 'ruby-reek 'ruby-rubocop)
;; Do not insert magic encoding comment at the begining of each file
(setq ruby-insert-encoding-magic-comment nil)
;; Company list override
(add-to-list (make-local-variable 'company-backends)
'(company-etags company-yasnippet))
'(company-capf company-yasnippet)))
;; Set specific ctags command
(setq-local ctags/refresh-command
(format "ctags -e -R --languages=ruby -f %sTAGS %s. $(bundle list --paths)"
(projectile-project-root) (projectile-project-root))))
(projectile-project-root) (projectile-project-root)))
(add-hook 'ruby-mode-hook 'enh-ruby-mode)
(add-hook 'enh-ruby-mode-hook 'lsp-deferred)
(add-hook 'enh-ruby-mode-hook 'rspec-mode)
(add-hook 'enh-ruby-mode-hook 'ruby-end-mode)
(eval-after-load 'rspec-mode