4

I'm using Emacs 24.5.1 in Mac OS X.

Recently I had to input £ frequently so I changed my input source from U.S. to British. With British keyboard, Option+3 will yield # in other editors, however, this doesn't work in Emacs since M is special keystroke in Emacs.

How can I insert # in Emacs in Mac OS X with Brithsh keyboard?

lawlist
  • 19,106
  • 5
  • 38
  • 120
ntalbs
  • 169
  • 2
  • 9

1 Answers1

5

There are other methods than the one mentioned in this answer, but I personally prefer the best of both worlds -- i.e., I use the left alt/option key as meta, and I use the right alt/option key for stock Apple stuff -- e.g., special characters like the ones mentioned by the original poster:

(setq ns-alternate-modifier 'meta)
(setq ns-right-alternate-modifier 'none)
lawlist
  • 19,106
  • 5
  • 38
  • 120
  • I googled and found other ways like override M-3 to insert £, however, I prefer to the method you described. – ntalbs Oct 21 '15 at 04:10
  • One of the most popular methods is with C-x 8: http://www.gnu.org/software/emacs/manual/html_node/emacs/Unibyte-Mode.html -- type C-x 8 C-h to see available characters. – lawlist Oct 21 '15 at 04:12