mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 19:45:25 +03:00
feat(emacs): add timeout to wttr.in
This commit is contained in:
parent
2a69f52ca0
commit
d7f69b1071
2 changed files with 4 additions and 2 deletions
|
|
@ -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"))
|
:params '(("format" . "%l:%20%C%20%t%20%w%20%p"))
|
||||||
:sync t
|
:sync t
|
||||||
:parser (lambda () (url-unhex-string (buffer-string)))
|
:parser (lambda () (url-unhex-string (buffer-string)))
|
||||||
|
:timeout 10
|
||||||
:success (cl-function
|
:success (cl-function
|
||||||
(lambda (&key data &allow-other-keys)
|
(lambda (&key data &allow-other-keys)
|
||||||
(setq my/weather-value data)
|
(setq my/weather-value data)
|
||||||
|
|
|
||||||
|
|
@ -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"))
|
:params '(("format" . "%l:%20%C%20%t%20%w%20%p"))
|
||||||
:sync t
|
:sync t
|
||||||
:parser (lambda () (url-unhex-string (buffer-string)))
|
:parser (lambda () (url-unhex-string (buffer-string)))
|
||||||
|
:timeout 10
|
||||||
:success (cl-function
|
:success (cl-function
|
||||||
(lambda (&key data &allow-other-keys)
|
(lambda (&key data &allow-other-keys)
|
||||||
(setq my/weather-value data)
|
(setq my/weather-value data)
|
||||||
|
|
@ -4745,7 +4746,7 @@ Let's also try to log the current mood:
|
||||||
" ")))
|
" ")))
|
||||||
#+end_src
|
#+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
|
- Emacs version
|
||||||
- Hostname
|
- Hostname
|
||||||
- Location
|
- Location
|
||||||
|
|
@ -5899,7 +5900,7 @@ emacs -Q --batch -l run-tangle.el
|
||||||
#+end_src
|
#+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
|
* Applications
|
||||||
** Dired
|
** 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.
|
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.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue