all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Subject: Re: emacs init and mode-maps
Date: Fri, 23 Jun 2006 12:54:02 +0200	[thread overview]
Message-ID: <85sllwgn1x.fsf@lola.goethe.zz> (raw)
In-Reply-To: e7gfr0$mh1$1@online.de

Andreas Roehler <andreas.roehler@online.de> writes:

> David Kastrup wrote:
>
>> Andreas Roehler <andreas.roehler@online.de> writes:
>> 
>>> An assignment as
>>>
>>> (define-key sh-mode-map "\M-#" 'do-something)
>>>
>>> should work instantly, as soon as sh-mode is activated.
>>               ^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> 
>> You are aware that this is a complete contradiction, unless
>> sh-mode is activated instantly (hardly desirable)?
>
> An assignment as 
>
> (define-key sh-mode-map "\M-#" 'do-something)
>
> should work - i.e. at least be recorded for further use
> -
>
> also, if sh-mode isn't activated yet.

That would requires sh-mode-map to be defined before loading, or
define-key to work on undefined variables, and it would most certainly
cause any define-key in sh-mode.el to override the settings in .emacs.

All of this is not desirable.  I recommend you read up a bit more
about Elisp before making proposals.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2006-06-23 10:54 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-22  7:17 emacs init and mode-maps Andreas Roehler
2006-06-22  8:58 ` Reiner Steib
2006-06-22  9:22   ` David Kastrup
2006-06-22 10:02     ` Reiner Steib
2006-06-22 13:58       ` Andreas Roehler
2006-06-22 14:44         ` David Kastrup
2006-06-23 10:38           ` Andreas Roehler
2006-06-24 11:01             ` Peter Dyballa
     [not found]             ` <mailman.3284.1151146887.9609.help-gnu-emacs@gnu.org>
2006-06-25  7:14               ` Andreas Roehler
2006-06-25  9:54                 ` David Kastrup
2006-06-23 10:38           ` Andreas Roehler
2006-06-23 10:54             ` David Kastrup [this message]
2006-06-23 20:51               ` Kevin Rodgers
2006-06-23 22:08                 ` Slawomir Nowaczyk
2006-06-26 16:12                   ` Kevin Rodgers
2006-06-27 12:03                     ` Slawomir Nowaczyk
2006-06-24  6:04               ` Andreas Roehler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85sllwgn1x.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.