Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我习惯使用“Cc Cr”命令将代码发送到 R 中的解释器,并使用 Emacs 说统计信息。如何将 python 模式设置为使用“Cc Cr”而不是“Cc |” 评估代码?
谢谢!
它已经绑定到C-c C-r内置的 python.el 中,但这里有一个绑定键的命令。如果您使用的是 python-mode.el,则必须更改库名称、命令,也许还有地图。
C-c C-r
(eval-after-load "python" '(progn (define-key python-mode-map (kbd "C-c C-r") 'python-shell-send-region)))