From 2cf3f4d4dc08339aadc511b96a7627ddeb7a0836 Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 19 Feb 2022 03:43:16 +0000 Subject: Documentation whitespace and titles --- doc/write-your-own-plugin.org | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'doc/write-your-own-plugin.org') diff --git a/doc/write-your-own-plugin.org b/doc/write-your-own-plugin.org index 2645c3b..d558e40 100644 --- a/doc/write-your-own-plugin.org +++ b/doc/write-your-own-plugin.org @@ -1,4 +1,4 @@ -* Writing Your Own Plugin +#+title: Writing your own plugin Writing a plugin for xmobar is very simple! @@ -59,16 +59,17 @@ the many =run*= functions in [[../src/Xmobar/Plugins/Monitors/Common/Run.hs][Xmo define =start=. The =Exec= instance should then live in [[../src/Xmobar/Plugins/Monitors.hs][Xmobar.Plugins.Monitors]]. -** Using a Plugin +*** Using a Plugin -To use your new plugin, you need to use a pure Haskell configuration for -xmobar, and load your definitions there. You can see an example in -[[../examples/xmobar.hs][examples/xmobar.hs]] showing you how to write a Haskell configuration that -uses a new plugin, all in one file. + To use your new plugin, you need to use a pure Haskell + configuration for xmobar, and load your definitions there. You can + see an example in [[../examples/xmobar.hs][examples/xmobar.hs]] showing you how to write a + Haskell configuration that uses a new plugin, all in one file. -When xmobar runs with the full path to that Haskell file as its argument -(or if you put it in =~/.config/xmobar/xmobar.hs=), and with the xmobar -library installed (e.g., with =cabal install --lib xmobar=), the Haskell -code will be compiled as needed, and the new executable spawned for you. + When xmobar runs with the full path to that Haskell file as its + argument (or if you put it in =~/.config/xmobar/xmobar.hs=), and + with the xmobar library installed (e.g., with =cabal install --lib + xmobar=), the Haskell code will be compiled as needed, and the new + executable spawned for you. -That's it! + That's it! -- cgit v1.2.3