Lately I'm trying out various emacs hacks (the awesome
cycle-buffer.el, and today
highlight-symbol). I'm running low on free Function keys and wanted to start binding things on the numeric keypad, which I rarely use. I was initially foiled by built-in translations which map the numeric keypad keys to their non-keypad equivalents (arrows, home, end, page up/down, etc.). A few minutes of googling didn't turn up a ready made formula for disabling this, so I kludged something up for my .emacs:
;; Disable keypad key translations, so I can rebind them.
;; (There Has To Be A Better Way..)
(setq function-key-map
(cons
(first function-key-map)
(remove-if
(lambda (pair)
(member (first pair) '(kp-home kp-up kp-prior kp-left
kp-begin kp-right kp-end kp-down kp-next
kp-insert kp-delete kp-divide kp-multiply
kp-subtract kp-add kp-enter)))
(rest function-key-map))))