mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Allow to go back to using 'ruby-mode' after loading 'ruby-ts-mode'
* lisp/progmodes/ruby-ts-mode.el (major-mode-remap-defaults): Remap 'ruby-mode' to 'ruby-ts-mode'. Add commentary. * lisp/progmodes/ruby-mode.el (major-mode-remap-defaults): Remove any remappings of ruby-mode'. * lisp/progmodes/c-ts-mode.el: Fix a typo in a comment. (Bug#74339)
This commit is contained in:
parent
fc17e8727d
commit
0ef0f18f16
3 changed files with 41 additions and 6 deletions
|
|
@ -2748,6 +2748,10 @@ Currently there are `ruby-mode' and `ruby-ts-mode'."
|
|||
(dolist (name (list "ruby" "rbx" "jruby" "j?ruby\\(?:[0-9.]+\\)"))
|
||||
(add-to-list 'interpreter-mode-alist (cons (purecopy name) 'ruby-mode)))
|
||||
|
||||
;; See ruby-ts-mode.el for why we do this.
|
||||
(setq major-mode-remap-defaults
|
||||
(assq-delete-all 'ruby-mode major-mode-remap-defaults))
|
||||
|
||||
(provide 'ruby-mode)
|
||||
|
||||
;;; ruby-mode.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue