Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 16551e78563a5b49ff9624ee1c8b8101 > files > 880

ghc-xmonad-contrib-devel-0.11-1.1.fc18.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>XMonad.Prompt.Email</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_XMonad-Prompt-Email.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad-Prompt-Email.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">xmonad-contrib-0.11: Third party extensions for xmonad</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>unportable</td></tr><tr><th>Stability</th><td>stable</td></tr><tr><th>Maintainer</th><td>&lt;byorgey@gmail.com&gt;</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">XMonad.Prompt.Email</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Usage
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A prompt for sending quick, one-line emails, via the standard GNU
 'mail' utility (which must be in your $PATH).  This module is
 intended mostly as an example of using <a href="XMonad-Prompt-Input.html">XMonad.Prompt.Input</a> to
 build an action requiring user input.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:emailPrompt">emailPrompt</a> :: <a href="XMonad-Prompt.html#t:XPConfig">XPConfig</a> -&gt; [<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></div><div id="interface"><h1 id="g:1">Usage
</h1><div class="doc"><p>You can use this module by importing it, along with
 <a href="XMonad-Prompt.html">XMonad.Prompt</a>, into your ~/.xmonad/xmonad.hs file:
</p><pre> import XMonad.Prompt
 import XMonad.Prompt.Email
</pre><p>and adding an appropriate keybinding, for example:
</p><pre>  , ((modm .|. controlMask, xK_e), emailPrompt defaultXPConfig addresses)
</pre><p>where <code>addresses</code> is a list of email addresses that should
 autocomplete, for example:
</p><pre> addresses = [&quot;me@me.com&quot;, &quot;mr@big.com&quot;, &quot;tom.jones@foo.bar&quot;]
</pre><p>You can still send email to any address, but sending to these
 addresses will be faster since you only have to type a few
 characters and then hit 'tab'.
</p><p>For detailed instructions on editing your key bindings, see
 <a href="XMonad-Doc-Extending.html#Editing_key_bindings">XMonad.Doc.Extending</a>.
</p></div><div class="top"><p class="src"><a name="v:emailPrompt" class="def">emailPrompt</a> :: <a href="XMonad-Prompt.html#t:XPConfig">XPConfig</a> -&gt; [<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/XMonad-Prompt-Email.html#emailPrompt" class="link">Source</a></p><div class="doc"><p>Prompt the user for a recipient, subject, and body, and send an
   email via the GNU 'mail' utility.  The second argument is a list
   of addresses for autocompletion.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>