Don't auto-insert coding comments in Ruby
This commit is contained in:
parent
39849e3938
commit
705ac3b9cc
1 changed files with 4 additions and 0 deletions
|
@ -37,10 +37,14 @@
|
|||
;; We never want to edit Rubinius bytecode
|
||||
(add-to-list 'completion-ignored-extensions ".rbc")
|
||||
|
||||
;; Map yari to C-h R
|
||||
(define-key 'help-command (kbd "R") 'yari)
|
||||
|
||||
(with-eval-after-load 'ruby-mode
|
||||
(defun prelude-ruby-mode-defaults ()
|
||||
;; Don't auto-insert encoding comments
|
||||
;; Those are almost never needed in Ruby 2+
|
||||
(setq ruby-insert-encoding-magic-comment nil)
|
||||
(inf-ruby-minor-mode +1)
|
||||
;; CamelCase aware editing operations
|
||||
(subword-mode +1))
|
||||
|
|
Loading…
Reference in a new issue