feat(emacs): add timeout to wttr.in

This commit is contained in:
Pavel Korytov 2023-04-03 11:28:01 +03:00
parent 2a69f52ca0
commit d7f69b1071
2 changed files with 4 additions and 2 deletions

View file

@ -3376,6 +3376,7 @@ KEYS is a list of cons cells like (<label> . <time>)."
:params '(("format" . "%l:%20%C%20%t%20%w%20%p"))
:sync t
:parser (lambda () (url-unhex-string (buffer-string)))
:timeout 10
:success (cl-function
(lambda (&key data &allow-other-keys)
(setq my/weather-value data)

View file

@ -4717,6 +4717,7 @@ Also, I want to add some extra information to the journal. Here's a functionalit
:params '(("format" . "%l:%20%C%20%t%20%w%20%p"))
:sync t
:parser (lambda () (url-unhex-string (buffer-string)))
:timeout 10
:success (cl-function
(lambda (&key data &allow-other-keys)
(setq my/weather-value data)
@ -4745,7 +4746,7 @@ Let's also try to log the current mood:
" ")))
#+end_src
And here's a function that creates a drawer with such information. At the moment, it's:
And here's the function that creates a drawer with such information. At the moment, it's:
- Emacs version
- Hostname
- Location
@ -5899,7 +5900,7 @@ emacs -Q --batch -l run-tangle.el
#+end_src
I have added this line to yadm's =post_alt= hook, so tangle is run after =yadm alt=
I have added this line to yadm's =post_alt= hook, so to run tangle after =yadm alt=
* Applications
** Dired
Dired is the built-in Emacs file manager. It's so good that it's strange that, to my knowledge, no one tried to replicate it outside of Emacs.