Skip to content

Instantly share code, notes, and snippets.

@guehara
Created May 7, 2012 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guehara/2625740 to your computer and use it in GitHub Desktop.
Save guehara/2625740 to your computer and use it in GitHub Desktop.
ruby-block-mode diff
ruby-mode-hook にいちいち追加すんのが面倒なので本体側を修正。
original -> 【EmacsWiki: Ruby Block Mode】 http://www.emacswiki.org/emacs/RubyBlockMode
--- 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