emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New special-mode parent


From: Stefan Monnier
Subject: Re: New special-mode parent
Date: Fri, 13 Jun 2008 17:52:51 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> (defvar special-mode-map
>> (let ((map (make-sparse-keymap)))
>> (suppress-keymap map)
>> (define-key map "q" 'quit-window)
>> (define-key map " " 'scroll-up)
>> (define-key map "\C-?" 'scroll-down)
>> (define-key map "?" 'describe-mode)

> This one does not seem that useful

view-mode provides it and it seemed like it wouldn't hurt.  But I don't
really care about it.

>> (define-key map ">" 'end-of-buffer)
>> (define-key map "<" 'beginning-of-buffer)
>> (define-key map "g" 'revert-buffer)
> or this one

You mean the "g" one?  That's actually one I find important: all/most
special modes provide it.

> How about having an even more minimalistic version of this turned on
> even for read-only files?

It'd be kind of incompatible with the idea of a major mode.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]