插件名称: wttrin
插件配置:
(defun lijigang/init-wttrin()
(use-package wttrin
:ensure t
:commands (wttrin)
:init
(setq wttrin-default-cities '("Beijing" "Bristol"))))
插件名称: wttrin
插件配置:
(defun lijigang/init-wttrin()
(use-package wttrin
:ensure t
:commands (wttrin)
:init
(setq wttrin-default-cities '("Beijing" "Bristol"))))
有趣,不过为何每次打开wttrin都要输入city?
也可以hack之
interesting 准备下载试试!
因为不知道这个符号怎么输入… 不过只要设置yahoo-weather-format 就行了
C-x 8 RET 2103 RET 注意你的字体要支持。
满怀期待装上,不过好像yahoo封闭了服务了。我不能update-info,报443错误。
可以用openweather
(setq-default mode-line-format
(list
"%e"
'(:eval (yahoo-weather-info-format yahoo-weather-info yahoo-weather-format))
mode-line-front-space
mode-line-mule-info
mode-line-client
mode-line-modified
mode-line-remote
mode-line-frame-identification
mode-line-buffer-identification
" "
mode-line-position
'(vc-mode vc-mode)
" "
mode-line-modes
mode-line-misc-info
mode-line-end-spaces))
这样应用到modeline,但报如下错误: Debugger entered–Lisp error: (void-variable yahoo-weather-info)
请作者解惑。
抱歉挖个坟 其实没有必要特意打开一个buffer显示天气 直接放到底栏就好了