diff options
author | tdback <tyler@tdback.net> | 2025-02-10 22:13:21 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2025-02-10 22:13:21 -0500 |
commit | 7cf5688f1d69ea0802d570adbfbce5e1d8ef556c (patch) | |
tree | 79c774d68692daef8915875af98fe37dad09a4b6 /lisp/td-functions.el | |
parent | d698023b22e1f392004dcf86d97e9c0b93457169 (diff) |
lisp: update bindings
Diffstat (limited to 'lisp/td-functions.el')
-rw-r--r-- | lisp/td-functions.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/td-functions.el b/lisp/td-functions.el index fbd4134..37faf28 100644 --- a/lisp/td-functions.el +++ b/lisp/td-functions.el @@ -27,6 +27,15 @@ :weight 'normal :height 200))) +(defun td/quit-if-not-in-macro () + (interactive) + (if (or defining-kbd-macro executing-kbd-macro) + (progn + (if (region-active-p) + (deactivate-mark) + (message "Macro running. Can't quit."))) + (keyboard-quit))) + (defun td/increment-number-at-point (&optional increment) "Increment number at point like vim's `C-a'." (interactive "p") |