Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f73754c9
Commit
f73754c9
authored
Oct 24, 2013
by
John Anthony
Committed by
Glenn Morris
Oct 24, 2013
Browse files
* lisp/progmodes/ruby-mode.el (ruby-mode-menu): Add a menu
Fixes: debbugs:15600
parent
a0be396a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
lisp/ChangeLog
lisp/ChangeLog
+3
-1
lisp/progmodes/ruby-mode.el
lisp/progmodes/ruby-mode.el
+16
-0
No files found.
lisp/ChangeLog
View file @
f73754c9
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>
...
...
lisp/progmodes/ruby-mode.el
View file @
f73754c9
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment