Add fill-paragraph key command

This commit is contained in:
laurensmiers 2017-08-21 18:42:07 +02:00
parent 5d4120674e
commit bf119f6e24
2 changed files with 4 additions and 0 deletions

View file

@ -5,3 +5,4 @@ C-x 0 : close current window
C-q <tab> : insert a <tab> C-q <tab> : insert a <tab>
M-x (un)tabify : (replace) tabs M-x (un)tabify : (replace) tabs
M-x describe-bindings : list of all mapped keys/commands M-x describe-bindings : list of all mapped keys/commands
M-p : fill-paragraph, works for doxygen as well

View file

@ -24,6 +24,9 @@
;; Map query-replace-regexp to an easier key ;; Map query-replace-regexp to an easier key
(global-set-key (kbd "C-x r r") 'query-replace-regexp) (global-set-key (kbd "C-x r r") 'query-replace-regexp)
;; Map query-replace-regexp to an easier key
(global-set-key (kbd "M-p") 'fill-paragraph)
;; Delete trailing whitespace when saving file ;; Delete trailing whitespace when saving file
(add-hook 'before-save-hook 'delete-trailing-whitespace) (add-hook 'before-save-hook 'delete-trailing-whitespace)