From 0b0d55ac9ba9090d705cd1dc31c9f703dc47873c Mon Sep 17 00:00:00 2001 From: gwern0 Date: Wed, 26 Jan 2011 21:10:18 +0100 Subject: AppendFile: additional example of usage Ignore-this: 2ba40977463ff15140067ef73947785c darcs-hash:20110126201018-f7719-372929e5841011021ff82411ac30fa6b8835acd2.gz --- XMonad/Prompt/AppendFile.hs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'XMonad/Prompt') diff --git a/XMonad/Prompt/AppendFile.hs b/XMonad/Prompt/AppendFile.hs index 74c4dad..0adcd26 100644 --- a/XMonad/Prompt/AppendFile.hs +++ b/XMonad/Prompt/AppendFile.hs @@ -43,6 +43,15 @@ import Control.Exception.Extensible (bracket) -- -- > , ((modm .|. controlMask, xK_n), appendFilePrompt defaultXPConfig "/home/me/NOTES") -- +-- Additional notes can be added via regular Haskell or XMonad functions; for +-- example, to preface notes with the time they were made, one could write a +-- binding like +-- +-- > , ((modm .|. controlMask, xK_n), spawn ("date>>"++"/home/me/NOTES") >> appendFilePrompt +-- defaultXPConfig "/home/me/NOTES" +-- +-- (And vice-versa to append the time instead.) +-- -- For detailed instructions on editing your key bindings, see -- "XMonad.Doc.Extending#Editing_key_bindings". -- cgit v1.2.3