diff --git a/cheat-sheet.txt b/cheat-sheet.txt index 24f0c7d..ddd8cdd 100644 --- a/cheat-sheet.txt +++ b/cheat-sheet.txt @@ -5,3 +5,4 @@ C-x 0 : close current window C-q : insert a M-x (un)tabify : (replace) tabs M-x describe-bindings : list of all mapped keys/commands +M-p : fill-paragraph, works for doxygen as well diff --git a/custom/setup-editing.el b/custom/setup-editing.el index b8b807a..17ec4dd 100644 --- a/custom/setup-editing.el +++ b/custom/setup-editing.el @@ -24,6 +24,9 @@ ;; Map query-replace-regexp to an easier key (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 (add-hook 'before-save-hook 'delete-trailing-whitespace)