Next Previous Contents

5. Keybindings

Keybindings for html-helper-mode version 2.19.

Note - if this list seems not to be up to date, your best bet is to look at the mode help for html-helper-mode by typing C-hm from within the mode.

Every keysequence here inserts some HTML cookie. The point is then placed where you want to type in the information for that cookie. If you call the command with a prefix argument (by typing C-u first), then instead the cookie is placed around the current region.

5.1 Mode bindings


TAB         indent line 
RET         insert newline and indent 
M-TAB       complete tag at point 
M-C-f       move forward one mark 
M-C-b       move backward one mark 
C-cC-zt     insert the timestamp delimiter

5.2 Common insertions


M-RET       html-paragraph          <p> 
C-cRET      html-break              <br> 
C-c=        html-horizontal-rule    <hr> 
C-cC-t#     html-header-#           <h#></h#> 
C-cC-al     html-anchor             <a href=""></a> 
C-cC-lu     html-unordered-list     <ul><li></ul> 
C-cC-ld     html-definition-list    <dl><dt><dd></dl> 
C-cC-li     html-smart-insert-item  <li>  or  <dt><dd> depending on context

5.3 HTML insertion commands

Every HTML cookie should have an insertion command. These commands can be used in two ways: by typing the beginning of the cookie and hitting M-TAB, for completion, or by typing it's somewhat-mnemonic keybinding.

The keybindings aren't very good - I am constrained by emacs style to binding things only to C-cC-<letter>. Each class of HTML cookie is assigned to some particular C-cC-<letter>, and then within that map different letters insert different cookies.


Prefix      Cookie class 
------      ------------ 
C-cC-b      head element ("begin") 
C-cC-t      headers ("title" - sorry, C-cC-h has a special meaning in emacs) 
C-cC-a      anchors 
C-cC-s      logical styles ("styles") 
C-cC-p      physical styles 
C-cC-l      lists 
C-cC-n      annotations ("notes") 
C-cC-f      forms 
C-cTAB      images 
special     text elements 
special     entities
C-c-C-z     functions

Head elements - C-cC-b


 key         template                inserted text
 ---         --------                ------------- 
B           html-body               <body></body> 
H           html-head               <head></head>
t           html-title              <title></title> 
i           html-isindex            <isindex> 
n           html-nextid             <nextid> 
l           html-link               <link href=""> 
b           html-base               <base href="">
m           html-meta-name          <meta name="" content="">
h           http-equivalent         <meta http-equiv="" content="">

Headers - C-cC-t


1           html-header-1           <h1></h1> 
2           html-header-2           <h2></h2> 
3           html-header-3           <h3></h3> 
4           html-header-4           <h4></h4> 
5           html-header-5           <h5></h5>
6           html-header-6           <h6></h6>

Anchors - C-cC-a


n           html-target-anchor      <a name=""></a> 
l           html-anchor             <a href=""></a>

Logical styles - C-cC-s


p           html-preformatted       <pre></pre> 
b           html-blockquote         <blockquote></blockquote> 
e           html-emphasized         <em></em> 
s           html-strong             <strong></strong> 
c           html-code               <code></code> 
x           html-sample             <samp></samp> 
r           html-citation           <cite></cite> 
k           html-keyboard           <kbd></kbd> 
v           html-variable           <var></var> 
d           html-definition         <dfn></dfn>
a           html-address            <address></address>  

Physical styles - C-cC-p


b           html-bold               <b></b> 
i           html-italic             <i></i> 
u           html-underline          <u></u> 
f           html-fixed              <tt></tt> 
s           html-strikethru         <strike></strike> 

Lists - C-cC-l


o           html-ordered-list       <ol><li></ol> 
u           html-unordered-list     <ul><li></ul> 
r           html-directory          <dir><li></dir> 
m           html-menu               <menu><li></menu> 
d           html-definition-list    <dl><dt><dd></dl> 
i           html-smart-insert-item  <li>  or  <dt><dd> depending on context 
l           html-item               <li> 
t           html-definition-item    <dt><dd>

Forms - C-cC-f


f           html-form               <form action="" method=""></form> 
t           html-input-text         <input name="" size=""> 
i           html-image-field        <input type="IMAGE" name="" src=""> 
c           html-input-checkbox     <input type="CHECKBOX" name=""> 
r           html-input-radiobutton  <input type="RADIO" name=""> 
b           html-input-submit-form  <input type="SUBMIT" value=""> 
z           html-input-reset        <input type="RESET" value=""> 
p           html-input-textarea     <textarea name="" rows= cols=></textarea> 
s           html-input-select       <select name=""><option></select>
v           html-option-with-value  <option value=""> 
o           html-option             <option> 
h           html-hidden-field       <input type="HIDDEN" name="" value="">

Images - C-cTAB


i           html-image              <img src=""> 
t           html-alt-image          <img alt="" src=""> 
a           html-align-image        <img align="" src=""> 
e           html-align-alt-image    <img align="" src="" alt="">

Text Elements


M-RET       html-paragraph          <p> 
C-c=        html-horizontal-rule    <hr> 
C-cRET      html-break              <br>

Entities


C-c&        html-ampersand          &amp; 
C-c<        html-less-than          &lt; 
C-c>        html-greater-than       &gt; 
C-cSPC      html-nonbreaking-space  &nbsp;
C-c-        html-soft-hyphen        &shy;
C-c@        html-copyright          &copy;
C-c$        html-registered         &reg;
C-c"        html-quotation-mark     &quot;
C-c#        html-ascii-code         &[arbitrary entity inserted here];

Functions C-cC-z


v           browse-url-of-file 
t           insert-timestamp-delimiter-at-point


Next Previous Contents