You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Emacs中Cider输入状态下,如何按键结束输入并执行函数求值?

Cider REPL: End Input & Trigger Evaluation Shortcut

Hey there! I’ve spent tons of time messing around with Cider in Emacs, so I can help you out here.

When you’ve typed your content into the Cider REPL (and maybe hit Enter to add line breaks) and want to wrap up the input flow, trigger function evaluation, and display the output of your input content, the combo you need to press is C-c C-c.

To be clear, that’s:

  • Hold down the Ctrl key, press c, then release both
  • Immediately hold Ctrl again and press c once more

A quick side note: For single-line expressions, you can usually just hit Enter to evaluate right away. But if you’re working with multi-line code (like a multi-line function definition) where Enter was only used to add new lines, C-c C-c is the standard way to signal to Cider that you’re done typing and ready to run the code.

内容的提问来源于stack exchange,提问作者supernova

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 09:49:42