From 08cc50111547a0c0e55fa4f403eb6a3f917bd9a6 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 10 Feb 2021 17:35:02 -0600 Subject: Rebind M-= to `count-words' --- config.org | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config.org b/config.org index 481e61a..7fc3a59 100644 --- a/config.org +++ b/config.org @@ -1576,14 +1576,13 @@ don't know if it's that useful. (add-hook 'text-mode-hook #'hook--wc-mode-no-keybinds) #+end_src -*** Keybinding :crux: +*** Keybinding I just found out that =M-== counts the words in a region. That's great, but I -often want to count the words in the whole buffer. Enter -=crux-with-region-or-buffer=. I could change the binding. .... but I don't want to. +often want to count the words in the whole buffer. #+begin_src emacs-lisp :noweb-ref bindings - (crux-with-region-or-buffer count-words-region) + (define-key acdw/map (kbd "M-=") #'count-words) #+end_src ** Spell checking -- cgit 1.4.1-21-gabe81