Emacs中Cider输入状态下,如何按键结束输入并执行函数求值?
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
conce 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

