mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-17 13:33:36 -05:00
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:
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))
|
Reference in New Issue
Block a user