all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs init and mode-maps
@ 2006-06-22  7:17 Andreas Roehler
  2006-06-22  8:58 ` Reiner Steib
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Roehler @ 2006-06-22  7:17 UTC (permalink / raw)


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.

Suggest to enhance usability/convenience here.

What about to make all mode-maps autoloaded?

Or to give some advice if encountering that error?

Thanks to all participants!

__
Andreas Roehler

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2006-06-27 12:03 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.