obnoxio@BOSCO.BERKELEY.EDU (Obnoxious Math Grad Student) (08/19/87)
In article <1317@bloom-beacon.MIT.EDU>, langz@E40-334-1 (Lang Zerner) writes: >Hi there! I'm a novice GNU hacker, and I'm trying to find a simple way to >browse keymaps. The thought came to me of a keymap browser/editor in the >tradition of list-buffers and dired. Yes, that would be nice. Maybe you should volunteer for this particular project, and so end up climbing out of the novice stage? > The thought then came to me that, as >interesting as such a project might be, I'd rather not take it on Never mind. > if there's >some other simple way to examine a keymap in human readble form. That's easy: just use eval-last-sexp. If you want it to be pretty, try: (defun insert-keymap (keymap) "Display the contents of KEYMAP." (interactive "xkeymap: ") (insert (substitute-command-keys (concat "\\{" (symbol-name keymap) "}")))) > I can just >use define-key to do any actual editing. Or in the eval-last-sexp context mentioned above, a simple (setq keymap '(...)) will do the trick. ucbvax!brahms!weemba Matthew P Wiener/Brahms Gang/Berkeley CA 94720