Add indent-buffer bind
This commit is contained in:
		
							parent
							
								
									39861418b8
								
							
						
					
					
						commit
						a175124b7f
					
				
							
								
								
									
										6
									
								
								init.el
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								init.el
									
									
									
									
									
								
							| @ -226,6 +226,11 @@ init file, which initializes the package manager during compile time." | ||||
|     (delete-directory package-user-dir :recursive) | ||||
|     (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 () | ||||
|   "Select the minibuffer window if it is active." | ||||
|   (interactive) | ||||
| @ -363,6 +368,7 @@ DOCSTRING is an optional form that is discarded upon expansion." | ||||
|   ("C-c q" . visual-line-mode) | ||||
|   ("C-c d" . delete-pair) | ||||
|   ("C-c r" . revert-buffer-quick) | ||||
|   ("C-c \\" . user/indent-buffer) | ||||
|   ("C-c o" . user/select-minibuffer-window) | ||||
|   ("C-c s" . user/scratch-buffer) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user