Skip to content

Commit

Permalink
Do a better job of suppressing ruby-mode's "coding:" comment insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Oct 26, 2016
1 parent 056722f commit e4fc9eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lisp/init-ruby-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"\\.gemspec\\'" "Gemfile\\'" "Kirkfile\\'")
(add-auto-mode 'conf-mode "Gemfile\\.lock\\'")

(setq ruby-use-encoding-map nil)
(setq-default
ruby-use-encoding-map nil
ruby-insert-encoding-magic-comment nil)

(after-load 'ruby-mode
(define-key ruby-mode-map (kbd "TAB") 'indent-for-tab-command)
Expand Down

0 comments on commit e4fc9eb

Please sign in to comment.