On Fri, Jun 19, 2015 at 12:17 PM, Josiah Schwab <jschwab@gmail.com> wrote:
I based my config from the example (man/xmonad.hs) that ships with
xmonad-0.11 on Arch Linux. Is an example of a bad config? With my
limited understanding, it seems like it matches your description.
It hasd a limpid comment at the top that contains its real danger; I keep trying to get a much stronger warning added, but despite repeated requests that one is still there and still does not have a proper warning.
It is an example of how to override every setting. It does so by overriding every setting, with the defaults for one particular version of xmonad; this means you do not inherit any defaults, and if the defaults change in a later version then you will not see those changes (this bit a lot of people when dmenu changed its usage and we updated the mod-p binding, but people using that "example" didn't get the change because the old way was hardcoded in their configs. That was what convinced me that that example was Evil). If we were to change the implementation in certain ways, or if you use an example from a later version with an earlier version (someone popped up on IRC with that problem the other day), it wouldn't even compile.
The correct place to start is shown on the xmonad wiki: