From 50661d1123bb133088480c409a141280949ced71 Mon Sep 17 00:00:00 2001 From: Andrea Rossato Date: Fri, 23 Nov 2007 15:05:57 +0100 Subject: Named: haddock fixes darcs-hash:20071123140557-32816-86aa35c7356d81256acaf9bd9d31b30cde1f1708.gz --- XMonad/Layout/Named.hs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'XMonad') diff --git a/XMonad/Layout/Named.hs b/XMonad/Layout/Named.hs index 54ef89b..265f39c 100644 --- a/XMonad/Layout/Named.hs +++ b/XMonad/Layout/Named.hs @@ -10,6 +10,8 @@ -- Stability : unstable -- Portability : unportable -- +-- A module for assigning a name to a given layout. +-- ----------------------------------------------------------------------------- module XMonad.Layout.Named ( @@ -21,13 +23,19 @@ module XMonad.Layout.Named ( import XMonad -- $usage --- You can use this module with the following in your Config.hs file: +-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@: -- -- > import XMonad.Layout.Named -- --- and change the name of a given layout by +-- Then edit your @layoutHook@ by adding the Named layout modifier +-- to some layout: +-- +-- > myLayouts = Named "real big" Full ||| etc.. +-- > main = xmonad dafaultConfig { layoutHook = myLayouts } +-- +-- For more detailed instructions on editing the layoutHook see: -- --- > layout = Named "real big" Full ||| ... +-- "XMonad.Doc.Extending#Editing_the_layout_hook" data Named l a = Named String (l a) deriving ( Read, Show ) -- cgit v1.2.3