From: gebser@ameritech.net
Subject: Re: What's a better regexp for 'sentence-end' variable??
Date: Wed, 19 Feb 2003 15:42:50 -0500 [thread overview]
Message-ID: <Pine.LNX.4.44.0302191532380.16795-100000@heidegger.mousecar.net> (raw)
In-Reply-To: <3E52B9B3.3000306@ihs.com>
Hey, guys,
Thanks for all the suggestions. For some reason, though the function
works, none of the commands to assign it to "M-e" have worked:
(require 'sgml-mode) ;before the `define-key'-expression in .emacs
(eval-after-load 'sgml-mode
(define-key sgml-mode-map (kbd "M-e") 'my-html-forward-sentence))
(add-hook 'sgml-mode-hook
(lambda () (local-set-key (kbd "M-e")
'my-html-forward-sentence)))
(define-key sgml-mode-map (kbd "M-e") 'my-html-forward-sentence)
I've tried the first with each of the last four, reloading emacs for
each attempt, and M-e stubbornly remains mapped to the standard
"sentence-end".
Is it possible that something in my .emacs is loading html-helper-mode
after the above and overwriting the key definition?
Regardos,
ken
Kevin Rodgers at 15:54 (UTC-0700) on Tue, 18 Feb 2003 said:
= [Please don't top-post: http://www.aglami.com/tpfaq.html]
=
= gebser@ameritech.net wrote:
=
= > Oliver Scholz at 15:06 (UTC+0100) on Tue, 18 Feb 2003 said:
= > = (define-key sgml-mode-map (kbd "M-e") 'my-html-forward-sentence)
= >
= > The question now is how to have this load when emacs loads. I put it in
= > .emacs, reloaded, and got an error:
= >
= > Error in init file: Symbol's value as variable is void: sgml-mode-map
= >
= > This is because it's not in the path.
=
= No it's not.
=
= > So how do I get it in the path?
=
= (eval-after-load "sgml-mode" '(progn ...))
=
= or
=
= (add-hook 'sgml-mode-hook
= (lambda () (local-set-key (kbd "M-e") 'my-html-forward-sentence)))
=
=
next prev parent reply other threads:[~2003-02-19 20:42 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2070.1045574190.21513.help-gnu-emacs@gnu.org>
2003-02-18 14:06 ` What's a better regexp for 'sentence-end' variable?? Oliver Scholz
2003-02-18 20:15 ` gebser
2003-02-18 22:32 ` David Kastrup
2003-02-19 15:38 ` Kai Großjohann
2003-02-19 15:44 ` David Kastrup
2003-02-19 16:26 ` Kai Großjohann
2003-02-18 22:54 ` Kevin Rodgers
2003-02-19 20:42 ` gebser [this message]
2003-02-19 18:41 ` gebser
[not found] <mailman.2220.1045823872.21513.help-gnu-emacs@gnu.org>
2003-02-21 14:40 ` Stefan Monnier <foo@acm.com>
2003-02-21 14:55 ` gebser
2003-02-21 18:53 ` Oliver Scholz
2003-02-21 19:46 ` gebser
2003-02-21 20:56 ` Kai Großjohann
2003-02-22 1:14 ` gebser
2003-02-21 19:09 ` David Kastrup
[not found] <un0kr4229.fsf@ID-87814.user.dfncis.de>
2003-02-21 10:37 ` gebser
2003-02-18 13:16 gebser
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.44.0302191532380.16795-100000@heidegger.mousecar.net \
--to=gebser@ameritech.net \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).