GNU bug report logs -
#15600
24.3; ruby-mode lacks a menu
Previous Next
Reported by: John Anthony <john <at> jo.hnanthony.com>
Date: Sat, 12 Oct 2013 18:11:01 UTC
Severity: wishlist
Tags: patch
Merged with 15595
Found in version 24.3
Fixed in version 24.4.
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Here's a menu that just covers the basic commands from
lisp/progmodes/ruby.el
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 2f92216..07ca58b 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -158,6 +158,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)
--
John Anthony
This bug report was last modified 11 years and 273 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.