我已经安装了多光标程序包,但是我无法正常工作。只能修改一个光标,其余的光标不起作用。
我已经为多光标包配置了.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)
有人可以帮忙吗? 谢谢。
答案 0 :(得分:2)
我的水晶球告诉我,很久很久以前,原始海报出现了一个交互式问题,问他/她是否对所有光标都执行相同的命令;检察官以“否”回答了问题。因此,“多重光标”程序包向mc/lists-file
添加了一个条目,其默认位置为:(locate-user-emacs-file ".mc-lists.el")
-请参见https://github.com/magnars/multiple-cursors.el/blob/master/multiple-cursors-core.el#L627
检察官应打开上述文件,并查看是否应手动删除其先前的选择。该文件包含以下内容:
;; 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)