xmonad: Run script which runs emacs

Apparently the `runOrRaiseNext' function doesn't like programs with
arguments.
This commit is contained in:
Tom Willemsen 2013-02-17 10:39:02 +01:00
parent cfab9a2faa
commit 3070f08c78

View file

@ -37,9 +37,9 @@ main = xmonad $ defaultConfig
("C-z ,", screenWorkspace 0 >>= flip whenJust (windows . W.view)),
("C-z .", screenWorkspace 1 >>= flip whenJust (windows . W.view)),
("C-z S-c", spawn "urxvt"),
("C-z S-e", spawn "emacsclient -ca emacs"),
("C-z S-e", spawn "editor"),
("C-z c", runOrRaiseNext "urxvt" (className =? "URxvt")),
("C-z e", runOrRaiseNext "emacsclient -ca emacs" (className =? "Emacs")),
("C-z e", runOrRaiseNext "editor" (className =? "Emacs")),
("C-z w", runOrRaiseNext "conkeror" (className =? "Conkeror")),
("M-S-1", spawn "dmenu_run"),
("M-n", windows W.focusDown),