diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-10-31 19:01:06 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-10-31 19:01:06 +0100 |
commit | c38c3a4c67d8b108de8951a395d3faf8bef7b733 (patch) | |
tree | 5d5e2209a994505cded2bf14c0eea3ecf0d22af8 /.config/emacs/editing.el | |
parent | 1cb1333efae063e7e81e7db3838fda38746703cd (diff) |
emacs: Check if ‘mc/num-cursors’ is bound
Diffstat (limited to '.config/emacs/editing.el')
-rw-r--r-- | .config/emacs/editing.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/emacs/editing.el b/.config/emacs/editing.el index 95160f8..66a5953 100644 --- a/.config/emacs/editing.el +++ b/.config/emacs/editing.el @@ -198,7 +198,8 @@ each cursor (effectively calling `e/mc/sort-regions'. When called with a prefix argument REVERSE, sorting occurs in reverse order." (interactive "*P") - (if (< 1 (mc/num-cursors)) + (if (and (fboundp #'mc/num-cursors) + (< 1 (mc/num-cursors))) (e/mc/sort-regions reverse) (sort-lines reverse (region-beginning) (region-end)))) |