summaryrefslogtreecommitdiff
path: root/wttrin.el
diff options
context:
space:
mode:
authorkuanyui <azazabc123@gmail.com>2016-03-06 01:12:58 +0800
committerkuanyui <azazabc123@gmail.com>2016-03-06 01:12:58 +0800
commitba9c2c89ae0daf52001e61c21cbeb20be00ecf00 (patch)
treeb4cb7995ee82ad8398c582188d5ae3806a4278a2 /wttrin.el
parentc187b60141fb730f88983c5225c2774a89208b59 (diff)
Remove HTTP header
Diffstat (limited to 'wttrin.el')
-rw-r--r--wttrin.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/wttrin.el b/wttrin.el
index c42c874..199ade6 100644
--- a/wttrin.el
+++ b/wttrin.el
@@ -42,6 +42,9 @@
(buf (get-buffer-create name)))
(switch-to-buffer buf))
(insert (xterm-color-filter (wttrin-fetch wttrin-query)))
+ (goto-char (point-min))
+ (re-search-forward "^$")
+ (delete-region (point-min) (1+ (point)))
(setq buffer-read-only t))
(provide 'wttrin)