mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
+ Fixes function/command formatters (like #'gofmt) + Fixes formatting by region + Adds default keybindings: + gQ evil operator + SPC c f (normal mode) to format buffer + SPC c f (visual mode) to format selection
9 lines
322 B
EmacsLisp
9 lines
322 B
EmacsLisp
;;; editor/format/autoload/evil.el -*- lexical-binding: t; -*-
|
|
;;;###if (featurep! :feature evil)
|
|
|
|
;;;###autoload (autoload '+format:region "editor/format/autoload/evil" nil t)
|
|
(evil-define-operator +format:region (beg end type)
|
|
"Evil ex interface to `+format-region'."
|
|
(interactive "<R>")
|
|
(+format-region beg end))
|