summaryrefslogtreecommitdiffstats
path: root/misc/ruby-mode.el
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-27 13:31:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-27 13:31:47 +0000
commit5c64843c65f2ccca53c03c080545825a05f9e4d1 (patch)
tree199585a93908548227a7299711d63072e7c0a4f5 /misc/ruby-mode.el
parent7f5409f1da781ec4c5e4bc6f9b3f7aa03a368d80 (diff)
downloadruby-5c64843c65f2ccca53c03c080545825a05f9e4d1.tar.gz
ruby-5c64843c65f2ccca53c03c080545825a05f9e4d1.tar.xz
ruby-5c64843c65f2ccca53c03c080545825a05f9e4d1.zip
* misc/ruby-mode.el (ruby-mode): set ruby-mode-set-encoding to buffer
local before-save-hook. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r--misc/ruby-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 92287e968..20a81f26e 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -272,6 +272,7 @@ The variable ruby-indent-level controls the amount of indentation.
(make-local-variable 'add-log-current-defun-function)
(setq add-log-current-defun-function 'ruby-add-log-current-method)
+ (make-local-variable 'before-save-hook)
(add-hook 'before-save-hook 'ruby-mode-set-encoding)
(run-hooks 'ruby-mode-hook))