Emacs 31 is around the corner: The changes I'm daily driving 471 points by frou_dh·165 days ago·rahuljuliato.com·Show in HN
>treesit-auto-install-grammar
Sweet. GLP1 for my .emacs!
30.2 is as far as I am willing to go. Happy travels.
> kill-region-dwim fixes a decades-old papercut. Set it to 'emacs-word and hitting C-w with no active region kills a word backwards instead of signalling an error.
Thank you! No more:
(defun cutregion-or-killword (beginning end)
"Kills region if marked else backward kills word."
(interactive "r")
(if (use-region-p)
(kill-region beginning end)
(backward-kill-word 1)))
(global-set-key (kbd "C-w") 'cutregion-or-killword)