Created
May 7, 2012 03:31
-
-
Save guehara/2625740 to your computer and use it in GitHub Desktop.
ruby-block-mode diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-mode-hook にいちいち追加すんのが面倒なので本体側を修正。 | |
original -> 【EmacsWiki: Ruby Block Mode】 http://www.emacswiki.org/emacs/RubyBlockMode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ruby-block.el.orig 2011-11-01 20:52:49.000000000 +0900 | |
+++ ruby-block.el 2012-05-07 10:15:44.000000000 +0900 | |
@@ -251,6 +251,11 @@ | |
(setq ruby-block-highlight-toggle nil) | |
(setq ruby-block-highlight-toggle t))) | |
+(eval-after-load 'ruby-mode | |
+ '(add-hook 'ruby-mode-hook | |
+ (lambda () | |
+ (ruby-block)))) | |
+ | |
(provide 'ruby-block) | |
;; Local Variables: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment