您可以将 Ropemacs 建议通过管道传递给另一个命令吗?
有没有办法从ropemacs的rope-code-assist(在ropemode中绑定到“M-/”)获取完成建议以在另一个命令中使用?
我想做的是这样的:
(defun rope-completions-in-ido ()
(interactive)
(insert
(let ((mylist ROPE-GET-COMPLETIONS-LIST))
(ido-completing-read "Suggested Completions: " mylist))))
(define-key py-mode-map (kbd "M-/") 'rope-completions-in-ido)
编辑:切换到 python.el,它神奇地开始工作,不需要上面的 hack。现在,只需调用“rope-code-assist”即可以 ido 方式在迷你缓冲区中显示建议。
is there a way of getting the completions suggestions from ropemacs' rope-code-assist (bound to "M-/" in ropemode) to use in another command?
What I'm trying to do is something like this:
(defun rope-completions-in-ido ()
(interactive)
(insert
(let ((mylist ROPE-GET-COMPLETIONS-LIST))
(ido-completing-read "Suggested Completions: " mylist))))
(define-key py-mode-map (kbd "M-/") 'rope-completions-in-ido)
Edit:Switched to python.el, and it magically started working, no need for the above hack. Simply calling rope-code-assist now brings up the suggestions in the minibuffer in an ido way.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
(如编辑中所述)切换到 python.el,它神奇地开始工作,不需要上面的 hack。现在,只需调用“rope-code-assist”即可以 ido 方式在迷你缓冲区中显示建议。
(As mentioned in edit) Switched to python.el, and it magically started working, no need for the above hack. Simply calling rope-code-assist now brings up the suggestions in the minibuffer in an ido way.