summaryrefslogtreecommitdiff
path: root/.config/emacs
diff options
context:
space:
mode:
Diffstat (limited to '.config/emacs')
-rw-r--r--.config/emacs/editing.el3
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))))