Emacs 中的多游标不会修改所有游标

Multiple-cursors in Emacs does not modify all the cursors

我已经安装了多游标包,但是我无法正常工作。只能修改一个游标,其余游标什么都不做。

我已经为多光标包配置了我的 .emacs 文件,如下所示:

(require 'multiple-cursors)
(global-set-key (kbd "C-c m c") 'mc/edit-lines)
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)

有人可以帮忙吗? 谢谢

我的 crystal 球告诉我,曾几何时,原始发帖人收到一个交互式问题,询问 him/her 是否对所有光标执行相同的命令;并且,O.P。以“否”回答问题。因此,Multiple Cursors 包向 mc/lists-file 添加了一个条目,其默认位置为:(locate-user-emacs-file ".mc-lists.el") -- 请参阅 https://github.com/magnars/multiple-cursors.el/blob/master/multiple-cursors-core.el#L652

O.P。应打开上述文件并查看是否应手动删除 his/her 先前的选择。该文件包含如下内容:

;; This file is automatically generated by the multiple-cursors extension.
;; It keeps track of your preferences for running commands with multiple cursors.

(setq mc/cmds-to-run-for-all
      '(
      my-custom-function-one
      org-self-insert-command
      ))

(setq mc/cmds-to-run-once
      '(
      mime-preview-scroll-down-entity
      my-custom-function-two
      ))


(provide '.multiple_cursors)