[Top][All Lists]

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

Re: emacs init and mode-maps

From: Reiner Steib
Subject: Re: emacs init and mode-maps
Date: Thu, 22 Jun 2006 10:58:15 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

On Thu, Jun 22 2006, Andreas Roehler wrote:

> After defining a key in my emacs init file
> (define-key sh-mode-map "\M-#" 'variable-anlegen)
> emacs refused further loading and I got the following error
> "Symbol's value as variable is void: sh-mode-map".
> Meanwhile I know, that 
> (require 'sh-script)
> in the init file before will solve the problem.
> Nonetheless, I consider this error as not appropriate,
> as defining mode-keys in init files is a common task.

Use `eval-after-load' or a mode hook.

Bye, Reiner.
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |

reply via email to

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