1

Add indent-buffer bind

This commit is contained in:
Jessie Hildebrandt 2022-12-19 22:37:41 -05:00
parent 39861418b8
commit a175124b7f

View File

@ -226,6 +226,11 @@ init file, which initializes the package manager during compile time."
(delete-directory package-user-dir :recursive) (delete-directory package-user-dir :recursive)
(user/byte-compile-init-files))) (user/byte-compile-init-files)))
(defun user/indent-buffer ()
"Call `indent-region' on the contents of the active buffer."
(interactive)
(indent-region (point-min) (point-max)))
(defun user/select-minibuffer-window () (defun user/select-minibuffer-window ()
"Select the minibuffer window if it is active." "Select the minibuffer window if it is active."
(interactive) (interactive)
@ -363,6 +368,7 @@ DOCSTRING is an optional form that is discarded upon expansion."
("C-c q" . visual-line-mode) ("C-c q" . visual-line-mode)
("C-c d" . delete-pair) ("C-c d" . delete-pair)
("C-c r" . revert-buffer-quick) ("C-c r" . revert-buffer-quick)
("C-c \\" . user/indent-buffer)
("C-c o" . user/select-minibuffer-window) ("C-c o" . user/select-minibuffer-window)
("C-c s" . user/scratch-buffer) ("C-c s" . user/scratch-buffer)