[xmonad] [Contrib-Patch] XMonad.Actions.KeyRemap
adam vogt
vogt.adam at gmail.com
Sat May 1 16:25:45 EDT 2010
Hello Christian,
I have a couple suggestions, mostly concerned with documentation:
Type signatures for top level declarations are mandatory.
Blocks of sample code should be prefixed with `>':
-- > foo x y z = ...
-- > ....
Itemized lists need blank lines around each item.
Lastly, the hardcoded constants could be calculated from the strings
you listed with `map (fromIntegral . fromEnum)'. Leave out the
fromIntegral if [Int] is the result you're looking for.
If it was a runtime performance concern, you could use template
haskell to run that calculation at compile time.
Nice idea to restore some unserializable state with the startupHook.
--
Adam
On Sat, May 1, 2010 at 7:42 AM, Christian Dietrich
<stettberger at dokucode.de> wrote:
> Hi,
> i had the problem that i wanted to use programmers dvorak keymapping[1]
> (or better said, i wanted to learn it). But for me as an emacs user it
> is a little bit disturbing, that my keybindings change when doing so.
>
> So i wrote a module that made it possible for me to define a keymapping,
> so that normal characters are translated by xmonad to programmers
> dvorak, and everythin that contains a modifier is left untouched.
>
> This behaviour is done by grabbing all keys by xmonad and sending
> appropriate Events to the focused window.
>
> It is also possible to change keymaps on the fly. Here i have the empty
> Mapping (here are also no keys bound by xmonad) on F1 and the dvorak
> Mapping on F2.
>
> greetz didi
>
> [1] http://www.kaufmann.no/roland/dvorak/
>
> PS: I hope i got the attachment right, i'm not used to gnus until now.
>
> --
> No documentation is better than bad documentation
> -- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.
>
>
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad
>
>
More information about the xmonad
mailing list