From eac134c5456051171c1c777254f503cc71ce12cd Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Thu, 27 Jul 2023 00:58:05 +0300 Subject: [PATCH] feat(emacs): add biome --- .emacs.d/init.el | 13 +++++++++++++ Emacs.org | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 8bab583..80b1d0f 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -2299,6 +2299,8 @@ Returns ( . ) or nil." (interactive "aFunction symbol: ") (advice-mapc (lambda (advice _props) (advice-remove sym advice)) sym)) +(add-hook 'inferior-emacs-lisp-mode-hook #'lispy-mode) + (use-package slime :straight t :commands (slime) @@ -6262,6 +6264,17 @@ base toot." "Q" 'google-translate-query-translate-reverse "t" 'google-translate-smooth-translate) +(use-package biome + :straight (:host github :repo "SqrtMinusOne/biome") + :commands (biome) + :init + (my-leader-def "ab" #'biome) + :config + (add-to-list 'biome-query-coords + '("Saint-Petersburg, Russia" 59.93863 30.31413)) + (add-to-list 'biome-query-coords + '("Tyumen, Russia" 57.15222 65.52722))) + (use-package tldr :straight t :commands (tldr) diff --git a/Emacs.org b/Emacs.org index f30bf47..4bf7375 100644 --- a/Emacs.org +++ b/Emacs.org @@ -3132,6 +3132,10 @@ Remove all advice from function. Source: https://emacs.stackexchange.com/questio (interactive "aFunction symbol: ") (advice-mapc (lambda (advice _props) (advice-remove sym advice)) sym)) #+end_src +**** IELM +#+begin_src emacs-lisp +(add-hook 'inferior-emacs-lisp-mode-hook #'lispy-mode) +#+end_src *** Common lisp **** SLIME #+begin_src emacs-lisp @@ -8710,6 +8714,21 @@ References: "Q" 'google-translate-query-translate-reverse "t" 'google-translate-smooth-translate) #+end_src +*** biome +[[https://github.com/SqrtMinusOne/biome][biome]] is my [[https://open-meteo.com/][open-meteo]] client. + +#+begin_src emacs-lisp +(use-package biome + :straight (:host github :repo "SqrtMinusOne/biome") + :commands (biome) + :init + (my-leader-def "ab" #'biome) + :config + (add-to-list 'biome-query-coords + '("Saint-Petersburg, Russia" 59.93863 30.31413)) + (add-to-list 'biome-query-coords + '("Tyumen, Russia" 57.15222 65.52722))) +#+end_src ** Reading documentation *** tldr [[https://tldr.sh/][tldr]] is a collaborative project providing cheatsheets for various console commands. For some reason, the built-in download in the package is broken, so I use my own function.