1
;;; rails-controller-minor-mode.el --- minor mode for RubyOnRails controllers
2
3
;; Copyright (C) 2006-2007 Dmitry Galinsky <dima dot exe at gmail dot com>
4
5
;; Authors: Dmitry Galinsky <dima dot exe at gmail dot com>,
6
;;          Rezikov Peter <crazypit13 (at) gmail.com>
7
8
;; Keywords: ruby rails languages oop
9
;; $URL$
10
;; $Id$
11
12
;;; License
13
14
;; This program is free software; you can redistribute it and/or
15
;; modify it under the terms of the GNU General Public License
16
;; as published by the Free Software Foundation; either version 2
17
;; of the License, or (at your option) any later version.
18
19
;; This program is distributed in the hope that it will be useful,
20
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
21
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
;; GNU General Public License for more details.
23
24
;; You should have received a copy of the GNU General Public License
25
;; along with this program; if not, write to the Free Software
26
;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
27
28
;;; Code:
29
30
(define-minor-mode rails-controller-minor-mode
31
  "Minor mode for RubyOnRails controllers."
32
  :lighter " Controller"
33
  :keymap (rails-controller-layout:keymap :controller)
34
  (setq rails-secondary-switch-func 'rails-controller-layout:menu)
35
  (setq rails-primary-switch-func 'rails-controller-layout:toggle-action-view))
36
37
(provide 'rails-controller-minor-mode)