views:

241

answers:

2

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! ;)

A: 

Have you thought about moving to Aquamacs?

Kendall Helmstetter Gelner
Well, it's still emacs under the hood, and its emacs which is seeing Alt+3 as M-3 and doing nothing about it.
digitala
The stuff "under the hood" is not what gets key events from the OS.
jrockway
+1  A: 

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)
Kendall Helmstetter Gelner