Carbon-emacs:重新启用散列键? [英] Carbon-emacs: re-enable hash key?
问题描述
如何在mac上重新启用碳 - emacs中的哈希(#)键?我已经尝试过我在谷歌遇到的一切,但仍然无法使其正常工作。
How can I re-enable the hash (#) key in carbon-emacs on the mac? I've tried everything I've come across in google and still can't get it working.
我的配置文件目前看起来像这样:
My config file currently looks like this:
(require 'redo+)
(require 'mac-key-mode)
(mac-key-mode 1)
(setq default-input-method "MacOSX")
(setq mac-command-modifier 'alt mac-option-modifier 'meta)
上面已经启用了所有Command + Key绑定(例如Cmd + S保存),但Alt + 3不起作用。
The above has enabled all the Command+Key bindings (such as Cmd+S for saving), but Alt+3 isn't working.
我通常会解决它,但是我在Python中进行编程,#对评论来说是非常有用的! ;)
I'd normally work around it but I'm programming in Python and # is rather useful for comments! ;)
推荐答案
如何将它添加到.emacs中,设置一个宏,然后绑定M-3: (fset'insertPound
#)
(全局设置密钥(kbdM-3)(
How about adding this to .emacs, setting up a macro and then binding M-3 to it:
(fset 'insertPound
"#")
(global-set-key (kbd "M-3") 'insertPound)
这篇关于Carbon-emacs:重新启用散列键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!