Commit f73754c9 authored by John Anthony's avatar John Anthony Committed by Glenn Morris
Browse files

* lisp/progmodes/ruby-mode.el (ruby-mode-menu): Add a menu

Fixes: debbugs:15600
parent a0be396a
2013-10-25 John Anthony <john@jo.hnanthony.com>
* progmodes/inf-lisp.el (inferior-lisp-menu): Add menu. (Bug#15599)
* progmodes/ruby-mode.el (ruby-mode-menu): Add a menu. (Bug#15600)
* progmodes/inf-lisp.el (inferior-lisp-menu): Add a menu. (Bug#15599)
2013-10-25 Glenn Morris <rgm@gnu.org>
......
......@@ -160,6 +160,22 @@ This should only be called after matching against `ruby-here-doc-beg-re'."
map)
"Keymap used in Ruby mode.")
(easy-menu-define
ruby-mode-menu
ruby-mode-map
"Ruby Mode Menu"
'("Ruby"
["Beginning Of Block" ruby-beginning-of-block t]
["End Of Block" ruby-end-of-block t]
["Toggle Block" ruby-toggle-block t]
"--"
["Backward Sexp" ruby-backward-sexp
:active (not ruby-use-smie)]
["Forward Sexp" ruby-forward-sexp
:active (not ruby-use-smie)]
["Indent Sexp" ruby-indent-sexp
:active (not ruby-use-smie)]))
(defvar ruby-mode-syntax-table
(let ((table (make-syntax-table)))
(modify-syntax-entry ?\' "\"" table)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment