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
2286174e
Commit
2286174e
authored
Jun 27, 2010
by
Chong Yidong
Browse files
* progmodes/ruby-mode.el (ruby-mode-map): Don't bind TAB.
(ruby-mode): Bind indent-line-function (Bug#5119).
parent
3468f435
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/ruby-mode.el
lisp/progmodes/ruby-mode.el
+2
-1
No files found.
lisp/ChangeLog
View file @
2286174e
2010-01-16 Lennart Borgman <lennart.borgman@gmail.com>
* progmodes/ruby-mode.el (ruby-mode-map): Don't bind TAB.
(ruby-mode): Bind indent-line-function (Bug#5119).
2010-06-27 Chong Yidong <cyd@stupidchicken.com>
* startup.el (command-line): Recognize "0" X resource value.
...
...
lisp/progmodes/ruby-mode.el
View file @
2286174e
...
...
@@ -166,7 +166,6 @@ This should only be called after matching against `ruby-here-doc-end-re'."
(
define-key
map
(
kbd
"M-C-n"
)
'ruby-end-of-block
)
(
define-key
map
(
kbd
"M-C-h"
)
'ruby-mark-defun
)
(
define-key
map
(
kbd
"M-C-q"
)
'ruby-indent-exp
)
(
define-key
map
(
kbd
"TAB"
)
'ruby-indent-line
)
(
define-key
map
(
kbd
"C-M-h"
)
'backward-kill-word
)
(
define-key
map
(
kbd
"C-j"
)
'reindent-then-newline-and-indent
)
(
define-key
map
(
kbd
"C-m"
)
'newline
)
...
...
@@ -1390,6 +1389,8 @@ The variable `ruby-indent-level' controls the amount of indentation.
(
setq
major-mode
'ruby-mode
)
(
ruby-mode-variables
)
(
set
(
make-local-variable
'indent-line-function
)
'ruby-indent-line
)
(
set
(
make-local-variable
'imenu-create-index-function
)
'ruby-imenu-create-index
)
(
set
(
make-local-variable
'add-log-current-defun-function
)
...
...
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