Skip to content

Instantly share code, notes, and snippets.

@liangzan
Created April 21, 2011 03:26
Show Gist options
  • Save liangzan/933655 to your computer and use it in GitHub Desktop.
Save liangzan/933655 to your computer and use it in GitHub Desktop.
removes the magic comment for ruby mode
diff --git a/ruby-mode/ruby-mode.el b/ruby-mode/ruby-mode.el
index 94cb9ab..d810146 100644
--- a/ruby-mode/ruby-mode.el
+++ b/ruby-mode/ruby-mode.el
@@ -350,7 +350,7 @@ Also ignores spaces after parenthesis when 'space."
((forward-char)))))
(insert coding-system)))
((looking-at "\\s *#.*coding\\s *[:=]"))
- (t (insert "# -*- coding: " coding-system " -*-\n"))
+ (t (insert ""))
)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment