Remove references to enh-ruby-mode
This commit is contained in:
parent
f82771980a
commit
dd402b7db3
12 changed files with 12 additions and 19 deletions
|
@ -55,7 +55,6 @@
|
||||||
(python-mode :lang python)
|
(python-mode :lang python)
|
||||||
(restclient-mode :lang rest)
|
(restclient-mode :lang rest)
|
||||||
(ruby-mode :lang ruby)
|
(ruby-mode :lang ruby)
|
||||||
(enh-ruby-mode :lang ruby)
|
|
||||||
(rust-mode :lang rust)
|
(rust-mode :lang rust)
|
||||||
(scala-mode :lang scala)
|
(scala-mode :lang scala)
|
||||||
(sh-mode :lang sh)
|
(sh-mode :lang sh)
|
||||||
|
|
|
@ -539,7 +539,7 @@ modify the syntax-table in all buffers of some mode, e.g.:
|
||||||
;; For python
|
;; For python
|
||||||
(add-hook! 'python-mode-hook (modify-syntax-entry ?_ "w"))
|
(add-hook! 'python-mode-hook (modify-syntax-entry ?_ "w"))
|
||||||
;; For ruby
|
;; For ruby
|
||||||
(add-hook! 'enh-ruby-mode-hook (modify-syntax-entry ?_ "w"))
|
(add-hook! 'ruby-mode-hook (modify-syntax-entry ?_ "w"))
|
||||||
;; For Javascript
|
;; For Javascript
|
||||||
(add-hook! 'js2-mode-hook (modify-syntax-entry ?_ "w"))
|
(add-hook! 'js2-mode-hook (modify-syntax-entry ?_ "w"))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
|
@ -116,7 +116,7 @@ There is no guarantee your language mode will have completion support.
|
||||||
|
|
||||||
Some, like ~lua-mode~, don't have completion support in Emacs at all. Others may
|
Some, like ~lua-mode~, don't have completion support in Emacs at all. Others may
|
||||||
requires additional setup to get code completion working. For instance,
|
requires additional setup to get code completion working. For instance,
|
||||||
~go-mode~ requires ~guru~ to be installed on your system, and ~enh-ruby-mode~
|
~go-mode~ requires ~guru~ to be installed on your system, and ~ruby-mode~
|
||||||
requires that you have a Robe server running (~M-x robe-start~).
|
requires that you have a Robe server running (~M-x robe-start~).
|
||||||
|
|
||||||
Check the relevant module's documentation for this kind of information.
|
Check the relevant module's documentation for this kind of information.
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
(sp-local-pair "(" ")" :unless '(:rem sp-point-before-same-p)))
|
(sp-local-pair "(" ")" :unless '(:rem sp-point-before-same-p)))
|
||||||
|
|
||||||
;; Major-mode specific fixes
|
;; Major-mode specific fixes
|
||||||
(sp-local-pair '(ruby-mode enh-ruby-mode) "{" "}"
|
(sp-local-pair 'ruby-mode "{" "}"
|
||||||
:pre-handlers '(:rem sp-ruby-pre-handler)
|
:pre-handlers '(:rem sp-ruby-pre-handler)
|
||||||
:post-handlers '(:rem sp-ruby-post-handler))
|
:post-handlers '(:rem sp-ruby-post-handler))
|
||||||
|
|
||||||
|
|
|
@ -232,7 +232,7 @@ directives. By default, this only recognizes C directives.")
|
||||||
:commands embrace-add-pair embrace-add-pair-regexp
|
:commands embrace-add-pair embrace-add-pair-regexp
|
||||||
:hook (LaTeX-mode . embrace-LaTeX-mode-hook)
|
:hook (LaTeX-mode . embrace-LaTeX-mode-hook)
|
||||||
:hook (org-mode . embrace-org-mode-hook)
|
:hook (org-mode . embrace-org-mode-hook)
|
||||||
:hook ((ruby-mode enh-ruby-mode) . embrace-ruby-mode-hook)
|
:hook (ruby-mode . embrace-ruby-mode-hook)
|
||||||
:hook (emacs-lisp-mode . embrace-emacs-lisp-mode-hook)
|
:hook (emacs-lisp-mode . embrace-emacs-lisp-mode-hook)
|
||||||
:hook ((lisp-mode emacs-lisp-mode clojure-mode racket-mode hy-mode)
|
:hook ((lisp-mode emacs-lisp-mode clojure-mode racket-mode hy-mode)
|
||||||
. +evil-embrace-lisp-mode-hook-h)
|
. +evil-embrace-lisp-mode-hook-h)
|
||||||
|
|
|
@ -48,10 +48,6 @@
|
||||||
"end\\|[]}]"
|
"end\\|[]}]"
|
||||||
"#\\|=begin"
|
"#\\|=begin"
|
||||||
ruby-forward-sexp)
|
ruby-forward-sexp)
|
||||||
(enh-ruby-mode "class\\|d\\(?:ef\\|o\\)\\|module\\|[[{]"
|
|
||||||
"end\\|[]}]"
|
|
||||||
"#\\|=begin"
|
|
||||||
enh-ruby-forward-sexp nil)
|
|
||||||
(matlab-mode "if\\|switch\\|case\\|otherwise\\|while\\|for\\|try\\|catch"
|
(matlab-mode "if\\|switch\\|case\\|otherwise\\|while\\|for\\|try\\|catch"
|
||||||
"end"
|
"end"
|
||||||
nil (lambda (_arg) (matlab-forward-sexp)))
|
nil (lambda (_arg) (matlab-forward-sexp)))
|
||||||
|
|
|
@ -33,7 +33,6 @@ This module add Ruby and optional Ruby on Rails support to Emacs.
|
||||||
+ =+rails= Enables rails navigational commands, plus server+console integration.
|
+ =+rails= Enables rails navigational commands, plus server+console integration.
|
||||||
|
|
||||||
** Packages
|
** Packages
|
||||||
+ [[https://github.com/zenspider/enhanced-ruby-mode][enh-ruby-mode]]
|
|
||||||
+ [[https://github.com/nonsequitur/inf-ruby][inf-ruby]]
|
+ [[https://github.com/nonsequitur/inf-ruby][inf-ruby]]
|
||||||
+ [[https://github.com/company-mode/company-inf-ruby][company-inf-ruby]]
|
+ [[https://github.com/company-mode/company-inf-ruby][company-inf-ruby]]
|
||||||
+ [[https://github.com/rubocop-hq/rubocop-emacs][rubocop]]
|
+ [[https://github.com/rubocop-hq/rubocop-emacs][rubocop]]
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
;;; lang/ruby/autoload.el -*- lexical-binding: t; -*-
|
;;; lang/ruby/autoload.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +ruby|cleanup-robe-servers ()
|
(defun +ruby-cleanup-robe-servers-h () ; TODO Use me
|
||||||
"Clean up dangling inf robe processes if there are no more `enh-ruby-mode'
|
"Clean up dangling inf robe processes if there are no more `ruby-mode' buffers
|
||||||
buffers open."
|
open."
|
||||||
;; FIXME This should wait X seconds before cleaning up
|
;; FIXME This should wait X seconds before cleaning up
|
||||||
(unless (or (not robe-mode) (doom-buffers-in-mode 'enh-ruby-mode))
|
(unless (or (not robe-mode) (doom-buffers-in-mode 'ruby-mode))
|
||||||
(let (inf-buffer kill-buffer-query-functions)
|
(let (inf-buffer kill-buffer-query-functions)
|
||||||
(while (setq inf-buffer (robe-inf-buffer))
|
(while (setq inf-buffer (robe-inf-buffer))
|
||||||
(let ((process (get-buffer-process inf-buffer))
|
(let ((process (get-buffer-process inf-buffer))
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
(pcase major-mode
|
(pcase major-mode
|
||||||
((or 'c-mode 'c++-mode)
|
((or 'c-mode 'c++-mode)
|
||||||
(realgud:gdb (if path (concat "gdb " path))))
|
(realgud:gdb (if path (concat "gdb " path))))
|
||||||
((or 'ruby-mode 'enh-ruby-mode)
|
('ruby-mode
|
||||||
;; FIXME
|
;; FIXME
|
||||||
(doom:repl nil (format "run '%s'" (file-name-nondirectory (or path buffer-file-name)))))
|
(doom:repl nil (format "run '%s'" (file-name-nondirectory (or path buffer-file-name)))))
|
||||||
('sh-mode
|
('sh-mode
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
(realgud:kshdb :modes (sh-mode))
|
(realgud:kshdb :modes (sh-mode))
|
||||||
(realgud:pdb :modes (python-mode))
|
(realgud:pdb :modes (python-mode))
|
||||||
(realgud:perldb :modes (perl-mode perl6-mode))
|
(realgud:perldb :modes (perl-mode perl6-mode))
|
||||||
(realgud:rdebug :modes (ruby-mode enh-ruby-mode))
|
(realgud:rdebug :modes (ruby-mode))
|
||||||
(realgud:remake)
|
(realgud:remake)
|
||||||
(realgud:trepan :modes (perl-mode perl6-mode))
|
(realgud:trepan :modes (perl-mode perl6-mode))
|
||||||
(realgud:trepan2 :modes (python-mode))
|
(realgud:trepan2 :modes (python-mode))
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
((:lang . java) lsp-java dap-java)
|
((:lang . java) lsp-java dap-java)
|
||||||
((:lang . php) php-mode dap-php)
|
((:lang . php) php-mode dap-php)
|
||||||
((:lang . python) python dap-python)
|
((:lang . python) python dap-python)
|
||||||
((:lang . ruby) enh-ruby-mode dap-ruby)
|
((:lang . ruby) ruby-mode dap-ruby)
|
||||||
((:lang . rust) rust-mode dap-lldb)))
|
((:lang . rust) rust-mode dap-lldb)))
|
||||||
(when (doom-module-p (caar module) (cdar module) '+lsp)
|
(when (doom-module-p (caar module) (cdar module) '+lsp)
|
||||||
(with-eval-after-load (nth 1 module)
|
(with-eval-after-load (nth 1 module)
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
;; appending an extension to `buffer-file-name' when we talk to editorconfig.
|
;; appending an extension to `buffer-file-name' when we talk to editorconfig.
|
||||||
(defvar +editorconfig-mode-alist
|
(defvar +editorconfig-mode-alist
|
||||||
'((emacs-lisp-mode . "el")
|
'((emacs-lisp-mode . "el")
|
||||||
(enh-ruby-mode . "rb")
|
|
||||||
(js2-mode . "js")
|
(js2-mode . "js")
|
||||||
(perl-mode . "pl")
|
(perl-mode . "pl")
|
||||||
(php-mode . "php")
|
(php-mode . "php")
|
||||||
|
|
|
@ -44,7 +44,7 @@ As of this writing, this is the state of LSP support in Doom Emacs:
|
||||||
| [[../../lang/ocaml/README.org][:lang ocaml]] | tuareg-mode | ocaml-language-server |
|
| [[../../lang/ocaml/README.org][:lang ocaml]] | tuareg-mode | ocaml-language-server |
|
||||||
| [[../../lang/php/README.org][:lang php]] | php-mode | php-language-server |
|
| [[../../lang/php/README.org][:lang php]] | php-mode | php-language-server |
|
||||||
| [[../../lang/python/README.org][:lang python]] | python-mode | lsp-python-ms |
|
| [[../../lang/python/README.org][:lang python]] | python-mode | lsp-python-ms |
|
||||||
| [[../../lang/ruby/README.org][:lang ruby]] | ruby-mode, enh-ruby-mode | solargraph |
|
| [[../../lang/ruby/README.org][:lang ruby]] | ruby-mode | solargraph |
|
||||||
| [[../../lang/rust/README.org][:lang rust]] | rust-mode | rls |
|
| [[../../lang/rust/README.org][:lang rust]] | rust-mode | rls |
|
||||||
| [[../../lang/scala/README.org][:lang scala]] | scala-mode | metals |
|
| [[../../lang/scala/README.org][:lang scala]] | scala-mode | metals |
|
||||||
| [[../../lang/sh/README.org][:lang sh]] | sh-mode | bash-language-server |
|
| [[../../lang/sh/README.org][:lang sh]] | sh-mode | bash-language-server |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue