From 3e8f5a04f7a3e0fed71c4c8ffa52d45a609e0e1b Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 1 Apr 2024 11:42:23 -0500 Subject: Update README.md attempted code block and image link fix --- README.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cd3d7ab..79bead1 100644 --- a/README.md +++ b/README.md @@ -24,33 +24,38 @@ Enjoy! Set a default cities list for completion: ```elisp -(setq wttrin-default-cities '( "Berkeley, California" "Taipei, Taiwan" "Tainan, Taiwan"))``` +(setq wttrin-default-cities '( "Berkeley, California" "Taipei, Taiwan" "Tainan, Taiwan")) +``` You can also specify default HTTP request Header for Accept-Language: ```elisp -(setq wttrin-default-accept-language '("Accept-Language" . "zh-TW")))``` +(setq wttrin-default-accept-language '("Accept-Language" . "zh-TW"))) +``` As well as the unit system, "m" for metric and "u" for USCS/imperial (the default is to choose based on your location): ```elisp -(setq wttrin-unit-system "m")``` +(setq wttrin-unit-system "m") +``` If you want the weather to display in a monospaced font other than your default, you may specify it: ```elisp -(setq wttrin-font-name "Hack Nerd Font Mono")``` +(setq wttrin-font-name "Hack Nerd Font Mono") +``` You can specify the font height as well: ```elisp -(setq wttrin-font-name "Liberation Mono")``` +(setq wttrin-font-name "Liberation Mono") +``` Then run `M-x wttrin` to display the weather. After the weather is displayed you may press `q` to quit the buffer or `g` to query the weather for another location. -![screenshot](https://raw.githubusercontent.com/cjennings/emacs-wttrin/master/wttrin.png?raw=true) +![screenshot](wttrin.png) ## LICENSE -- cgit v1.2.3