title: global-set-key with keycodes and modifiers
body: <p>I'd like to use a keycode with modifiers in my .emacs file. However my naive attempts have failed so far. For instance if I use:</p>
  
  <pre><code>(global-set-key [93] "\\")
  </code></pre>
  
  <p>The ¥ key on my keyboard will emit \. However, what I'd also like to do is:</p>
  
  <pre><code>(global-set-key "M-[93]" "\\") ;; doesn't work
  </code></pre>
  
  <p>My implementation says that:</p>
  
  <pre><code>error: Key sequence ⇧M - [ 9 3 ] starts with non-prefix key ⇧M
  </code></pre>
  
  <p>How do I use modifiers such as M, S with keys defined by keycode?</p>
  
  <p>The back story is that I'm trying to modify my .emacs file to handle both the ¥ and \ behavior which exist on Japanese keyboards. For instance on an Apple keyboard, option-¥ would emit \ while ¥ would emit ¥. A different workaround is to use:</p>
  
  <pre><code>(setq ns-alternate-modifier 'option)
  </code></pre>
  
  <p>However this sets the option key as option. Which means meta must be defined on another key, which is inconvenient. Thus the motivation for this question.</p>