Skip to content

Commit

Permalink
feat(emacs): add weather command
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoke committed Nov 18, 2024
1 parent db49f65 commit 738dfcd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/nixos/programs/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -1029,5 +1029,13 @@
(interactive "MHex: ")
(shell-command (format "echo $((16#%s))" hex)))

(defun gg/weather ()
"Show the weather"
(interactive)
(async-shell-command "curl 'wttr.in?M'"))

(gg/leader
"u w" #'gg/weather)

(load custom-file 'noerror)

0 comments on commit 738dfcd

Please sign in to comment.