branch: elpa/multiple-cursors
commit 98f2346f037df890b1e9f0da4d0c2197822c0374
Merge: e94567c 9f4502b
Author: Magnar Sveen <[email protected]>
Commit: Magnar Sveen <[email protected]>
Merge pull request #152 from ShingoFukuyama/master
Change file load timing
---
multiple-cursors-core.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index 974b1b8..32f1537 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -717,7 +717,9 @@ for running commands with multiple cursors.")
(defvar mc/cmds-to-run-for-all nil
"Commands to run for all cursors in multiple-cursors-mode")
-(load mc/list-file t) ;; load, but no errors if it does not exist yet please
+(defun mc/load-list-file () (load mc/list-file t))
+
+(add-hook 'after-init-hook 'mc/load-list-file)
(provide 'multiple-cursors-core)