Carbon-emacs: re-enable hash key?

假装没事ソ 提交于 2019-12-12 18:27:38

问题


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)

The above has enabled all the Command+Key bindings (such as Cmd+S for saving), but Alt+3 isn't working.

I'd normally work around it but I'm programming in Python and # is rather useful for comments! ;)


回答1:


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)



回答2:


I know this is a bit late and the answer has been accepted. However, I have just moved from Linux to MacOS and had the same problem.

Posted my response on a similar question: https://stackoverflow.com/a/21722619/1308653

I hope this helps someone.




回答3:


Have you thought about moving to Aquamacs?



来源:https://stackoverflow.com/questions/1704119/carbon-emacs-re-enable-hash-key

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!