From 7763f4f9d7b9d2a4eb08a1f94699edaeb4f433ed Mon Sep 17 00:00:00 2001 From: Masahiro Nakamura <13937915+tsuu32@users.noreply.github.com> Date: Sun, 18 Oct 2020 04:15:10 +0900 Subject: [PATCH] Load mc-cycle-cursors and mc-hide-unmatched-lines-mode after loading multiple-cursors-core This is useful with autoloaded commands. --- mc-hide-unmatched-lines-mode.el | 5 +++-- multiple-cursors-core.el | 2 ++ multiple-cursors.el | 2 -- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mc-hide-unmatched-lines-mode.el b/mc-hide-unmatched-lines-mode.el index 0167dbc..18d09d8 100644 --- a/mc-hide-unmatched-lines-mode.el +++ b/mc-hide-unmatched-lines-mode.el @@ -1,4 +1,4 @@ -;;; mc-hide-unmatched-lines.el +;;; mc-hide-unmatched-lines-mode.el ;; Copyright (C) 2014 Aleksey Fedotov @@ -103,5 +103,6 @@ mode. To leave this mode press or \"C-g\"" (defun hum/unhide-unmatched-lines () (remove-overlays nil nil hum/invisible-overlay-name t)) -(provide 'mc-hide-unmatched-lines-mode) (define-key mc/keymap (kbd "C-'") 'mc-hide-unmatched-lines-mode) + +(provide 'mc-hide-unmatched-lines-mode) diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el index 5d8cb8a..5b6ef5a 100644 --- a/multiple-cursors-core.el +++ b/multiple-cursors-core.el @@ -844,6 +844,8 @@ for running commands with multiple cursors." "Commands to run for all cursors in multiple-cursors-mode") (provide 'multiple-cursors-core) +(require 'mc-cycle-cursors) +(require 'mc-hide-unmatched-lines-mode) ;; Local Variables: ;; coding: utf-8 diff --git a/multiple-cursors.el b/multiple-cursors.el index e78bab3..47f6338 100644 --- a/multiple-cursors.el +++ b/multiple-cursors.el @@ -191,12 +191,10 @@ :group 'editing) (require 'mc-edit-lines) -(require 'mc-cycle-cursors) (require 'mc-mark-more) (require 'mc-mark-pop) (require 'rectangular-region-mode) (require 'mc-separate-operations) -(require 'mc-hide-unmatched-lines-mode) (provide 'multiple-cursors)