Disable the magic comment insertion by default

This commit is contained in:
Codruț Constantin Gușoi 2020-07-14 18:22:20 +01:00
parent f4f9f74075
commit 69078f8d9b
1 changed files with 3 additions and 0 deletions

View File

@ -283,6 +283,9 @@
("\\.\\(rb\\|rabl\\|ru\\|builder\\|rake\\|thor\\|gemspec\\|jbuilder\\|pryrc\\)\\'" . ruby-mode))
:init
(progn
;; This might have been important 10 years ago but now it's frustrating.
(setq ruby-insert-encoding-magic-comment nil)
(spacemacs/declare-prefix-for-mode 'ruby-mode "mt" "test")
(spacemacs/declare-prefix-for-mode 'ruby-mode "mT" "toggle")