summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-09-16 16:03:36 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-09-16 16:03:36 +0200
commit7b3007336fedc30a1bce096fcc910a0a36370ee0 (patch)
treeefaa1dedd95829ae343e5f1bbbb778285c64c78b /lisp
parent9bb8d90cddf11df3aecdc6c04e762773dfa0cb92 (diff)
downloademacs-7b3007336fedc30a1bce096fcc910a0a36370ee0.tar.gz
emacs-7b3007336fedc30a1bce096fcc910a0a36370ee0.tar.bz2
emacs-7b3007336fedc30a1bce096fcc910a0a36370ee0.zip
Bind `M-o' in html-mode and enriched-mode
* lisp/textmodes/enriched.el (enriched-mode-map): Actually define the `M-o' face map. * lisp/textmodes/sgml-mode.el (html-mode-map): Ditto (bug#50616). * lisp/textmodes/sgml-mode.el (html-mode): Adjust doc string.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/textmodes/enriched.el1
-rw-r--r--lisp/textmodes/sgml-mode.el10
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/textmodes/enriched.el b/lisp/textmodes/enriched.el
index c650da43bff..4a5a5ab3677 100644
--- a/lisp/textmodes/enriched.el
+++ b/lisp/textmodes/enriched.el
@@ -191,6 +191,7 @@ The value is a list of \(VAR VALUE VAR VALUE...).")
(define-key map "\C-x\t" #'increase-left-margin)
(define-key map "\C-c[" #'set-left-margin)
(define-key map "\C-c]" #'set-right-margin)
+ (define-key map "\M-o" #'facemenu-keymap)
map)
"Keymap for Enriched mode.")
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 5bfcc1a20cc..7ef8161ab5c 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -1835,6 +1835,7 @@ This takes effect when first loading the library.")
(define-key map "\C-cs" 'html-span))
(define-key map "\C-c\C-s" 'html-autoview-mode)
(define-key map "\C-c\C-v" 'browse-url-of-buffer)
+ (define-key map "\M-o" 'facemenu-keymap)
map)
"Keymap for commands for use in HTML mode.")
@@ -2372,10 +2373,11 @@ can also view with a browser to see what happens:
have <h1>Very Major Headlines</h1> through <h6>Very Minor Headlines</h6>
<hr> Parts can be separated with horizontal rules.
-<p>Paragraphs only need an opening tag. Line breaks and multiple spaces are
-ignored unless the text is <pre>preformatted.</pre> Text can be marked as
-<strong>bold</strong>, <em>italic</em> or <u>underlined</u> using the normal M-o
-or Edit/Text Properties/Face commands.
+<p>Paragraphs only need an opening tag. Line breaks and multiple
+spaces are ignored unless the text is <pre>preformatted.</pre>
+Text can be marked as <strong>bold</strong>, <em>italic</em> or
+<u>underlined</u> using the facemenu M-o or Edit/Text
+Properties/Face commands.
Pages can have <a name=\"SOMENAME\">named points</a> and can link other points
to them with <a href=\"#SOMENAME\">see also somename</a>. In the same way <a