只是习惯于在OS X上的emacs中进行分析 - C-C怎么不起作用? [英] Just getting used to paredit in emacs on OS X - how come C-) doesn't work?

查看:138
本文介绍了只是习惯于在OS X上的emacs中进行分析 - C-C怎么不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在Mac OS X Leopard中设置了一个Common Lisp编程环境。我发现一个不可或缺的emacs模块是paredit。 Paredit正在努力帮助我更容易地使我的Lisp代码更容易,但是我遇到了一个圈套。



C-),绑定到 paredit-forward-slurp-sexp ,不是前进诽谤sexps,而是回应号码 0 。我正在使用Mac,在iTerm和Terminal之间交替使用。两个应用程序中都存在同样的问题。



我在GNU Emacs的GUI版本中尝试了相同的组合键,而且它的工作。不幸的是,Emacs的图形版本不能满足我的需要;我想继续使用我的基于iTerm的钻机。



所以我问你,stackoverflow:我要做什么来获得C-)组合以注册iTerm ?

解决方案

IIRC,控制和移位的修改器组合不能发送到终端中的Emacs。 C - )需要shift键,所以它是超出范围。我不相信任何数量的终端调整都会改变这一点。



我相信 paredit-forward-slurp-sexp 也默认绑定到 C-< right> ,这在终端中应该可以正常工作,所以也许你可以训练你的手指来使用该键。 / p>

I've recently set up a Common Lisp programming environment in Mac OS X Leopard. One emacs module which I've found to be indispensable is paredit. Paredit is doing its part to help me wrangle my Lisp code more easily, but I've ran into a bit of a snare.

C-), bound to paredit-forward-slurp-sexp, is not forward slurping sexps but instead echoing the number 0. I'm using a Mac, alternating between iTerm and Terminal. The same problem is present in both apps.

I tried the same key combination in GNU Emacs' GUI version, and lo, it worked. Unfortunately the graphical version of Emacs does not satisfy my needs; I would like to keep using my iTerm based rig.

So I ask you, stackoverflow: what do I have to do to get the C-) combo to register with iTerm?

解决方案

IIRC, the modifier combination of Control and Shift cannot be sent to Emacs in a terminal. C-) requires the shift key, so it's out of bounds. I'm not convinced that any amount of terminal tweaking will change this.

I believe paredit-forward-slurp-sexp also gets bound to C-<right> by default, which should work fine in a terminal, so perhaps you can train your fingers to use that key instead.

这篇关于只是习惯于在OS X上的emacs中进行分析 - C-C怎么不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆