From 41701f17e8427c584b7523fafbebf4b0e85c7e66 Mon Sep 17 00:00:00 2001 From: Andrea Rossato Date: Fri, 16 Nov 2007 13:29:29 +0100 Subject: Documentation: typos and formatting darcs-hash:20071116122929-32816-8ebf00cfb57833d2ac1a75f974ead2930955b5dc.gz --- Documentation.hs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'Documentation.hs') 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. -} -- cgit v1.2.3