Reconfigure deft to ignore hidden files
Some checks are pending
/ Test config on ${{matrix.node}} (20) (push) Waiting to run

This commit is contained in:
Maciej 2024-07-21 10:03:30 +03:00
parent b8ae75bd63
commit f0d07952b4
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
4 changed files with 49 additions and 44 deletions

View file

@ -100,10 +100,13 @@
;; Enable Anthropic Claude LLM support for chat (it also sucks)
(use-package gptel :straight t :ensure t)
(defcustom anthropic-api-key "api-key" "The value of your Anthropic API key."
:type 'string
:initialize 'custom-initialize-set)
(setq
gptel-model "claude-3-sonnet-20240229"
gptel-backend (gptel-make-anthropic "Claude"
:stream t :key "Your key goes here"))
gptel-model "claude-3-5-sonnet-20240620"
gptel-backend (gptel-make-anthropic "Claude" :stream t :key (lambda () anthropic-api-key)))
(provide '+custom-pkg-company-yasnippet)
;;; company-yasnippet.el ends here

View file

@ -12,6 +12,7 @@
:config (setq
deft-directory (substitute-in-file-name "$DEFT_PATH")
deft-default-extension "md"
deft-ignore-file-regexp "^\\._[0-9-A-Z]+.md$"
deft-strip-summary-regexp (concat "\\("
"[\n\t]" ;; blank
"\\|^:[[:ascii:]]+:.*$" ;; org-mode properties string

View file

@ -47,7 +47,8 @@
("a" "Align" align-regexp)]
["Complete"
("y" "Snippet" company-yasnippet)
("m" "Any (Company)" company-complete)]
("m" "Any (Company)" company-complete)
("g" "Ask GPT" gptel-menu)]
["Find"
("s" "Swiper" swiper)
("u" "Undo tree" undo-tree-visualize)