1
0
Fork 0

Merge branch 'main' of apps.bram85.nl:bram/kagi.el

This commit is contained in:
Bram Schoenmakers 2024-01-20 10:36:11 +01:00
commit c6eb41df35
Signed by: bram
GPG key ID: 0CCD19DFDC63258F
2 changed files with 14 additions and 3 deletions

View file

@ -71,7 +71,10 @@ You way want to load and configure the package with ~use-package~, for example p
:custom-face
;; kagi-code defaults to fixed-pitch, but can be overridden as
;; follows:
(kagi-code ((t (:inherit org-verbatim)))))
(kagi-code ((t (:inherit org-verbatim))))
;; likewise for kagi-bold:
(kagi-bold ((t (:inherit modus-themes-bold)))))
#+end_src
The token can be supplied directly as a string, but you could write a lambda to retrieve the token from a more secure location (e.g. with the combination of [[https://passwordstore.org/][pass(1)]] and the password-store package that comes with it).
@ -188,9 +191,13 @@ One of those bindings is =C-c C-o=, which flushes the last output. However, this
If you recognize this confusion, you may want to add the following line to your configuration file to shadow the =comint-mode= binding with something more appropriate:
#+begin_src elisp
(keymap-set fastgpt-shell-mode-map "C-c C-o" #'browse-url-at-point)
(add-hook 'fastgpt-shell-mode-hook
(lambda ()
(keymap-set fastgpt-shell-mode-map "C-c C-o" #'browse-url-at-point)))
#+end_src
Because the =fastgpt-shell-mode-map= only becomes available when =kagi-fastgpt-shell= has been invoked, the keybinding is done in a mode hook.
* Changelog
** 0.3pre
@ -203,6 +210,10 @@ The summarizer commands =kagi-summarize-*= now accept a universal prefix. This a
- choose a different target language;
- choose a different summarizer engine.
*** Fixes
- Fixed language code for Korean summaries.
** 0.2
*** Breaking changes

View file

@ -116,7 +116,7 @@ https://help.kagi.com/kagi/api/summarizer.html."
("Indonesian [ID]" . "ID")
("Italian [IT]" . "IT")
("Japanese [JA]" . "JA")
("Korean [KO]" . "KA")
("Korean [KO]" . "KO")
("Lithuanian [LT]" . "LT")
("Latvian [LV]" . "LV")
("Norwegian [NB]" . "NB")