Move lang files
Some checks are pending
/ Test config on ${{matrix.node}} (20) (push) Waiting to run
Some checks are pending
/ Test config on ${{matrix.node}} (20) (push) Waiting to run
This commit is contained in:
parent
bf90b046b8
commit
1f20dd7bc1
27 changed files with 81 additions and 82 deletions
40
lisp/langs/icejam-lang-ruby.el
Normal file
40
lisp/langs/icejam-lang-ruby.el
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
;;; ruby -- summary -*- lexical-binding: t; -*-
|
||||
;;; Commentary:
|
||||
;;; Code:
|
||||
|
||||
(require 'icejam-prog-mode)
|
||||
(require 'icejam-projectile)
|
||||
|
||||
(use-package rspec-mode :straight t :defer t)
|
||||
(use-package ruby-end :straight t :defer t)
|
||||
(use-package rbs-mode :straight t :defer t)
|
||||
|
||||
(use-package enh-ruby-mode
|
||||
:requires (rspec-mode ruby-end)
|
||||
:straight t
|
||||
:defer t)
|
||||
|
||||
(defun activate-ruby-mode ()
|
||||
"All things for ruby mode."
|
||||
(set-indent 2)
|
||||
|
||||
;; Disable reek syntax checking permanently
|
||||
(add-to-list (make-local-variable 'flycheck-disabled-checkers) 'ruby-reek 'ruby-rubocop)
|
||||
|
||||
;; Do not insert magic encoding comment at the begining of each file
|
||||
(setq ruby-insert-encoding-magic-comment nil)
|
||||
|
||||
;; Company list override
|
||||
(add-to-list (make-local-variable 'company-backends)
|
||||
'(company-capf company-yasnippet)))
|
||||
|
||||
(add-hook 'ruby-mode-hook 'enh-ruby-mode)
|
||||
(add-hook 'enh-ruby-mode-hook 'rspec-mode)
|
||||
(add-hook 'enh-ruby-mode-hook 'ruby-end-mode)
|
||||
(eval-after-load 'rspec-mode
|
||||
'(rspec-install-snippets))
|
||||
(add-hook 'enh-ruby-mode-hook 'activate-ruby-mode)
|
||||
;; (add-hook 'enh-ruby-mode-hook 'lsp-deferred)
|
||||
|
||||
(provide 'icejam-lang-ruby)
|
||||
;;; icejam-lang-ruby.el ends here
|
||||
Loading…
Add table
Add a link
Reference in a new issue