diff --git a/emacs/init.el b/emacs/init.el index 83a250f..5cf6cae 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -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 diff --git a/emacs/snippets/org-mode/aicld b/emacs/snippets/org-mode/aicld new file mode 100644 index 0000000..6787540 --- /dev/null +++ b/emacs/snippets/org-mode/aicld @@ -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 diff --git a/emacs/snippets/org-mode/aippx b/emacs/snippets/org-mode/aippx new file mode 100644 index 0000000..627ea71 --- /dev/null +++ b/emacs/snippets/org-mode/aippx @@ -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