Commits

Yuya Nishihara  committed e5aa147

emacs: disable auto insertion of coding magic comment

  • Participants
  • Parent commits 2ba946e

Comments (0)

Files changed (1)

   (add-to-list 'auto-mode-alist '("\\.rake\\'" . ruby-mode))
   (add-hook 'ruby-mode-hook
             '(lambda ()
+               ; never insert -*- coding -*- automatically
+               (remove-hook 'before-save-hook 'ruby-mode-set-encoding 'local)
                (define-key ruby-mode-map "\C-m" 'reindent-then-newline-and-indent)
                (common-highlights)
                (flyspell-prog-mode))))