editor/format: general fix & refactor
+ 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
This commit is contained in:
parent
469cc7fbc1
commit
171c87aa2c
4 changed files with 228 additions and 165 deletions
8
modules/editor/format/autoload/evil.el
Normal file
8
modules/editor/format/autoload/evil.el
Normal file
|
@ -0,0 +1,8 @@
|
|||
;;; 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))
|
Loading…
Add table
Add a link
Reference in a new issue