[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What's a better regexp for 'sentence-end' variable??
From: |
gebser |
Subject: |
Re: What's a better regexp for 'sentence-end' variable?? |
Date: |
Wed, 19 Feb 2003 15:42:50 -0500 |
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)))
=
=
Re: What's a better regexp for 'sentence-end' variable??, gebser, 2003/02/19
Re: What's a better regexp for 'sentence-end' variable??, gebser, 2003/02/21
Re: What's a better regexp for 'sentence-end' variable??, Stefan Monnier <address@hidden>, 2003/02/21
Re: What's a better regexp for 'sentence-end' variable??, Oliver Scholz, 2003/02/21
Re: What's a better regexp for 'sentence-end' variable??, David Kastrup, 2003/02/21