Use rubocop for apheleia in ruby buffers and limit keybinding to prog-mode

This commit is contained in:
Jeremy Dormitzer 2024-04-02 15:04:54 -06:00
parent b57a368179
commit 30c22902b3

View File

@ -246,8 +246,10 @@
;; Code formatting library
(use-package apheleia
:straight (apheleia :host github :repo "raxod502/apheleia")
:config
(add-to-list 'apheleia-mode-alist '(ruby-mode . (rubocop)))
:general
("C-c f" #'apheleia-format-buffer))
(prog-mode-map "C-c f" #'apheleia-format-buffer))
;; AI assistance
(use-package copilot