1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 03:04:11 +01:00

Use modes.set in autocmd-examples rather than modes.push.

This commit is contained in:
Kris Maglione
2010-10-18 16:52:32 -04:00
parent 23a4bde382
commit e6b7d94e43

View File

@@ -90,11 +90,11 @@
<p>Enable <em>passthrough</em> mode on all Google sites:</p>
<code><ex>:autocmd LocationChange</ex> <str delim="'">google\.com</str> <hl key="HelpArg">-js</hl> modes.push(modes.PASS_THROUGH)</code>
<code><ex>:autocmd LocationChange</ex> <str delim="'">google\.com</str> <hl key="HelpArg">-js</hl> modes.set(modes.PASS_THROUGH)</code>
<p>Enable <em>passthrough</em> mode on <em>some</em> Google sites:</p>
<code><ex>:autocmd LocationChange</ex> <str delim="'">(www|mail)\.google\.com</str> <hl key="HelpArg">-js</hl> modes.push(modes.PASS_THROUGH)</code>
<code><ex>:autocmd LocationChange</ex> <str delim="'">(www|mail)\.google\.com</str> <hl key="HelpArg">-js</hl> modes.set(modes.PASS_THROUGH)</code>
<p>Set the filetype to mail when editing email at Gmail:</p>