keymaps_emacs_and_xemacs

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



From: Colin Walters <walters+n@cis.ohio-state.edu>
Subject: Re: Keybindings from Emacs to XEmacs
Date: 03 Nov 2000 09:23:54 -0500

On Fri, 03 Nov 2000, uzs33d@uni-bonn.de wrote:
> (setq minor-mode-map-alist
>         (cons '(sl-screen-line-mode keymap
>                 (?\C-k . sl-kill-screen-line)
>                 (?\C-p .sl-previous-screen-line)
>                 (?\C-n . sl-next-screen-line)
>                 (?\C-a .sl-beginning-of-screen-line)
>                 (?\C-e . sl-end-of-screen-line)
>                 (up . sl-previous-screen-line)
>                 (down . sl-next-screen-line)) 
>                          minor-mode-map-alist))

You should use the advertised interface to keymaps: `define-key',
`make-sparse-keymap', and friends.  Try something like:

(let ((keymap (make-sparse-keymap)))
  (define-key keymap "?\C-k" 'sl-kill-screen-line)
  ...
  (add-to-list 'minor-mode-map-alist keymap))


Path: nntp.stanford.edu!newsfeed.stanford.edu!xfer10.netnews.com!netnews.com!news.maxwell.syr.edu!news.cis.ohio-state.edu!10.2.2.1!nobody
From: Colin Walters <walters+n@cis.ohio-state.edu>
Newsgroups: gnu.emacs.help
Subject: Re: Keybindings from Emacs to XEmacs
Date: 03 Nov 2000 09:57:28 -0500
Organization: Church of Emacs, Missionary Dept.
Lines: 8

===








the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu