snippets and inline browsing

This commit is contained in:
Levi Neely 2024-09-08 18:21:13 +02:00
parent fb9e68eaa7
commit 5f5c4c485f
3 changed files with 30 additions and 0 deletions

View File

@ -761,6 +761,7 @@
(use-package yasnippet
:ensure t
:config
(setq yas-snippet-dirs '("~/.config/emacs/snippets/"))
(yas-global-mode 1)
:bind
("C-x y i" . yas-insert-snippet)
@ -771,6 +772,13 @@
:ensure t
:after yasnippet)
;; web browsing
;; ===
(require 'eww)
(setq shr-max-image-proportion 0.7)
(setq shr-image-animate nil)
(setq browse-url-browser-function 'eww-browse-url)
(provide 'init)
;;; init.el ends here

View File

@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: aicld
# key: aicld
# --
* ${1:What}
#+begin_ai :service anthropic :model claude-3-5-sonnet-20240620
[SYS]: ${2:You are a helpful assistant.}
[ME]: ${0}
#+end_ai

View File

@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: aippx
# key: aippx
# --
* ${1:What}
#+begin_ai :service perplexity.ai :model llama-3.1-sonar-small-128k-online
[SYS]: ${2:You are a helpful assistant.}
[ME]: ${0}
#+end_ai