unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15600: 24.3; ruby-mode lacks a menu
@ 2013-10-12 18:07 John Anthony
  2013-10-25  2:39 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: John Anthony @ 2013-10-12 18:07 UTC (permalink / raw)
  To: bozhidar.batsov; +Cc: 15600

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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#15600: 24.3; ruby-mode lacks a menu
  2013-10-12 18:07 bug#15600: 24.3; ruby-mode lacks a menu John Anthony
@ 2013-10-25  2:39 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2013-10-25  2:39 UTC (permalink / raw)
  To: 15600-done

Version: 24.4.

Applied.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-25  2:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-12 18:07 bug#15600: 24.3; ruby-mode lacks a menu John Anthony
2013-10-25  2:39 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).