diff options
author | Andrea Rossato <andrea.rossato@unibz.it> | 2007-11-16 13:29:29 +0100 |
---|---|---|
committer | Andrea Rossato <andrea.rossato@unibz.it> | 2007-11-16 13:29:29 +0100 |
commit | 41701f17e8427c584b7523fafbebf4b0e85c7e66 (patch) | |
tree | d17e97223883e59deb2687fe3010da9a2da84015 | |
parent | 232630650c94ab64ade66a774bec0f869044aa14 (diff) | |
download | XMonadContrib-41701f17e8427c584b7523fafbebf4b0e85c7e66.tar.gz XMonadContrib-41701f17e8427c584b7523fafbebf4b0e85c7e66.tar.xz XMonadContrib-41701f17e8427c584b7523fafbebf4b0e85c7e66.zip |
Documentation: typos and formatting
darcs-hash:20071116122929-32816-8ebf00cfb57833d2ac1a75f974ead2930955b5dc.gz
-rw-r--r-- | Documentation.hs | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Documentation.hs b/Documentation.hs index 8723ed0..09892fd 100644 --- a/Documentation.hs +++ b/Documentation.hs @@ -177,8 +177,6 @@ directories: Actions, Config, Hooks, Layout, Prompt, and Util. {- $extending -Extending XMonad - Since the @xmonad.hs@ file is just another Haskell module, you may import and use any Haskell code or libraries you wish, such as extensions from the xmonad-contrib library, or other code you write @@ -193,7 +191,7 @@ record of the 'XMonad.Core.XConfig' data type, like: > main = xmonad defaultConfig { keys = myKeys } -and by providing a proper definition of @myKeys@ such as: +and providing a proper definition of @myKeys@ such as: > myKeys x = > [ ((modMask x , xK_F12 ), xmonadPrompt defaultXPConfig ) @@ -219,15 +217,15 @@ For instance, if you have defined some additional key bindings like these: > myKeys x = -> [ ((modMask x , xK_F12 ), xmonadPrompt defaultXPConfig ) -> , ((modMask x , xK_F3 ), shellPrompt defaultXPConfig ) +> [ ((modMask x, xK_F12), xmonadPrompt defaultXPConfig) +> , ((modMask x, xK_F3 ), shellPrompt defaultXPConfig) > ] you may wish to edit accordingly the default configuration 'XMonad.Core.XConfig.keys' record: > main = xmonad defaultConfig { keys = newKeys } -> where newKeys x = foldr (uncurry Data.Map.insert) (keys defaultKeys) (myKeys x) +> where newKeys x = foldr (uncurry Data.Map.insert) (keys defaultConfig x) (myKeys x) And that's it. @@ -249,16 +247,16 @@ At the end you @~\/.xmonad\/xmonad.hs@ would look like this: > where newKeys x = foldr (uncurry M.insert) (keys defaultConfig x) (myKeys x) > > myKeys x = -> [ ((modMask x , xK_F12 ), xmonadPrompt defaultXPConfig ) -> , ((modMask x , xK_F3 ), shellPrompt defaultXPConfig ) -> ] +> [ ((modMask x, xK_F12), xmonadPrompt defaultXPConfig) +> , ((modMask x, xK_F3 ), shellPrompt defaultXPConfig) +> ] Alternatively you may wish to use some of the utilities provided by the xmonad-contrib library. For instance, "XMonad.Util.EZConfig" and "XMonad.Util.CustomKeys" -provide useful function to edit you key bindings. +provide useful functions to edit you key bindings. -} |