lang/ruby: Add rubocop binds

This commit is contained in:
Aria Edmonds 2018-07-06 23:46:23 +10:00
parent 6b1265ae5a
commit 12b32d6208

View file

@ -74,7 +74,14 @@ environment variables."
(global-rbenv-mode)) (global-rbenv-mode))
(def-package! rubocop (def-package! rubocop
:hook (enh-ruby-mode . rubocop-mode)) :hook (enh-ruby-mode . rubocop-mode)
:config
(map! :map rubocop-mode
:localleader
:nv "f" #'rubocop-check-current-file
:nv "F" #'rubocop-autocorrect-current-file
:nv "p" #'rubocop-check-project
:nv "P" #'rubocop-autocorrect-project))
;; FIXME: Clean up all processes from this/inf-ruby when all the ruby buffers ;; FIXME: Clean up all processes from this/inf-ruby when all the ruby buffers
;; are closed ;; are closed