osx - How can I remap TAB in Emacs? -


this feels should simple it's been driving me crazy. i've got function indent-or-expand i'd remap tab can't work (emacs v24, os x). i've been able emacs is:

error "to bind key tab, use \"\\t\", not [tab]"

doing (global-set-key [\"\\t\"] 'indent-or-expand) binds function <"\t"> apparently (whatever is), , every combination i've tried of \, ", [], , () has failed.

i did manage bind function t, though...

in addition others have told you:

  1. the emacs error message cite told use "\t", , if use should ok:

    (global-set-key "\t" 'indent-or-expand)

  2. be aware tab 1 thing , <tab> might thing. iow, depends code physical keyboard tab key sends emacs. tab tab character, , same acscii control character c-i, is, control + i, has decimal integer value 9. <tab> (in emacs) pseudo function key. (most tab want. use c-h k see physical tab key does.)


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -