diff options
| author | John Anthony | 2013-10-24 19:38:39 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-10-24 19:38:39 -0700 |
| commit | f73754c9234b53d0def73a3d0c79d58180b095b6 (patch) | |
| tree | 9976bea031f74743bc01fe446bb9e181565d128f /lisp/progmodes/ruby-mode.el | |
| parent | a0be396a4a31ed67e3953cdac830945bbeb494a9 (diff) | |
| download | emacs-f73754c9234b53d0def73a3d0c79d58180b095b6.tar.gz emacs-f73754c9234b53d0def73a3d0c79d58180b095b6.zip | |
* lisp/progmodes/ruby-mode.el (ruby-mode-menu): Add a menu
Fixes: debbugs:15600
Diffstat (limited to 'lisp/progmodes/ruby-mode.el')
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 5f553b94ba7..1ea6c3c7c99 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -160,6 +160,22 @@ This should only be called after matching against `ruby-here-doc-beg-re'." | |||
| 160 | map) | 160 | map) |
| 161 | "Keymap used in Ruby mode.") | 161 | "Keymap used in Ruby mode.") |
| 162 | 162 | ||
| 163 | (easy-menu-define | ||
| 164 | ruby-mode-menu | ||
| 165 | ruby-mode-map | ||
| 166 | "Ruby Mode Menu" | ||
| 167 | '("Ruby" | ||
| 168 | ["Beginning Of Block" ruby-beginning-of-block t] | ||
| 169 | ["End Of Block" ruby-end-of-block t] | ||
| 170 | ["Toggle Block" ruby-toggle-block t] | ||
| 171 | "--" | ||
| 172 | ["Backward Sexp" ruby-backward-sexp | ||
| 173 | :active (not ruby-use-smie)] | ||
| 174 | ["Forward Sexp" ruby-forward-sexp | ||
| 175 | :active (not ruby-use-smie)] | ||
| 176 | ["Indent Sexp" ruby-indent-sexp | ||
| 177 | :active (not ruby-use-smie)])) | ||
| 178 | |||
| 163 | (defvar ruby-mode-syntax-table | 179 | (defvar ruby-mode-syntax-table |
| 164 | (let ((table (make-syntax-table))) | 180 | (let ((table (make-syntax-table))) |
| 165 | (modify-syntax-entry ?\' "\"" table) | 181 | (modify-syntax-entry ?\' "\"" table) |