mirror of
https://github.com/godotengine/emacs-gdscript-mode.git
synced 2026-01-04 18:09:55 +03:00
Format buffer and region.
Closes #38. The implementation was simplified. Moreover, it is now possible to customize the path to the `gdformat` executable.
This commit is contained in:
@@ -60,6 +60,9 @@
|
||||
(define-key map (kbd "\t") 'company-complete)
|
||||
;; Insertion.
|
||||
(define-key map "\C-c\C-f" 'gdscript-completion-insert-file-path-at-point)
|
||||
;; Formatting.
|
||||
(define-key map "\C-c\C-t\C-r" 'gdscript-format-region)
|
||||
(define-key map "\C-c\C-t\C-t" 'gdscript-format-buffer)
|
||||
;; Run in Godot.
|
||||
(define-key map "\C-c\C-r\C-p" 'gdscript-godot-open-project-in-editor)
|
||||
(define-key map "\C-c\C-r\C-r" 'gdscript-godot-run-project)
|
||||
|
||||
Reference in New Issue
Block a user