[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors 16563e3 104/434: Add hooks when mc-mode i
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors 16563e3 104/434: Add hooks when mc-mode is enabled and disabled. |
Date: |
Sat, 7 Aug 2021 09:20:04 -0400 (EDT) |
branch: elpa/multiple-cursors
commit 16563e32d18c3d1518ae3f9a32598dd976fceb05
Author: Magnar Sveen <magnars@gmail.com>
Commit: Magnar Sveen <magnars@gmail.com>
Add hooks when mc-mode is enabled and disabled.
They are named `multiple-cursors-mode-enabled-hook`
and `multiple-cursors-mode-disabled-hook`.
Fixes #6
---
multiple-cursors-core.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index 6e9de90..421c146 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -276,9 +276,12 @@ multiple cursors editing.")
"Mode while multiple cursors are active."
nil " mc" mc/keymap
(if multiple-cursors-mode
- (add-hook 'post-command-hook 'mc/execute-this-command-for-all-cursors t
t)
+ (progn
+ (add-hook 'post-command-hook 'mc/execute-this-command-for-all-cursors
t t)
+ (run-hooks 'multiple-cursors-mode-enabled-hook))
(remove-hook 'post-command-hook 'mc/execute-this-command-for-all-cursors t)
- (mc/remove-fake-cursors)))
+ (mc/remove-fake-cursors)
+ (run-hooks 'multiple-cursors-mode-disabled-hook)))
(add-hook 'after-revert-hook #'(lambda () (multiple-cursors-mode 0)))
- [nongnu] elpa/multiple-cursors 75581da 037/434: Fix bug with expand-region dependency., (continued)
- [nongnu] elpa/multiple-cursors 75581da 037/434: Fix bug with expand-region dependency., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 8d49171 039/434: Update todo, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 80fdb6f 007/434: Hook multiple-cursors into mark-multiple, first step:, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 9182897 046/434: Add message about delete-char vs delete-forward-char, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c34e4df 064/434: Don't grow cursor overlays., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 382616a 020/434: Don't get annoyed so easily at multiple cursors., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b99d54a 047/434: Fix error message., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 4c56cb8 065/434: Tests for white-list prompt., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 4078570 066/434: Switch to multiple-cursors-mode from rectangular-region with <return>, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b2906bb 097/434: Don't forget to autoload, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 16563e3 104/434: Add hooks when mc-mode is enabled and disabled.,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors 6926ca3 105/434: Avoid strange smooth-scrolling behavior., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 059ee6b 109/434: Merge pull request #7 from Mon-Ouie/fix/macro-expansion, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 35921b5 130/434: Clarify that you need to set up own keybindings, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 37a89a6 129/434: Remove mark-multiple-integration feature test, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors d7263f2 136/434: A more rubust way of finding the command currently being invoked., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors fe211c0 176/434: Add word/symbol limiting mark-more functions:, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors bc8af45 186/434: Use derived-mode-p to check for sgml-mode-ishness., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 1afbb93 175/434: Add mc/cycle-looping-behaviour to multiple-cursors custom group., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors ed18fa4 222/434: Merge pull request #62 from tkf/export-ECUKES_EMACS, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 424e066 198/434: 1.1.5, ELPA Syncer, 2021/08/07