Initial Commit
[temp.git] / site-lisp / rails / rails-helper-minor-mode.el
blobdba3747b26d04cfd867f7065a08b64e64693c770
1 ;;; rails-helper-minor-mode.el --- minor mode for RubyOnRails helpers
3 ;; Copyright (C) 2006 Dmitry Galinsky <dima dot exe at gmail dot com>
5 ;; Authors: Dmitry Galinsky <dima dot exe at gmail dot com>
7 ;; Keywords: ruby rails languages oop
8 ;; $URL: svn+ssh://rubyforge/var/svn/emacs-rails/trunk/rails-helper-minor-mode.el $
9 ;; $Id: rails-helper-minor-mode.el 158 2007-04-03 08:45:46Z dimaexe $
11 ;;; License
13 ;; This program is free software; you can redistribute it and/or
14 ;; modify it under the terms of the GNU General Public License
15 ;; as published by the Free Software Foundation; either version 2
16 ;; of the License, or (at your option) any later version.
18 ;; This program is distributed in the hope that it will be useful,
19 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;; GNU General Public License for more details.
23 ;; You should have received a copy of the GNU General Public License
24 ;; along with this program; if not, write to the Free Software
25 ;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 ;;; Code:
29 (define-minor-mode rails-helper-minor-mode
30 "Minor mode for RubyOnRails helpers."
31 :lighter " Helper"
32 :keymap (rails-controller-layout:keymap :helper)
33 (setq rails-primary-switch-func 'rails-controller-layout:switch-to-controller)
34 (setq rails-secondary-switch-func 'rails-controller-layout:menu))
36 (provide 'rails-helper-minor-mode)