feat(packages): Add gptel and org-habit

- Configure gptel to use the Gemini 2.5 Pro model via the GitHub Copilot backend.
- Enable the org-habit module for habit tracking in Org mode.
This commit is contained in:
Zelong Kuang
2025-12-05 03:46:58 +11:00
parent cbeec87665
commit 8d3363cc38
2 changed files with 28 additions and 1 deletions

View File

@@ -123,6 +123,20 @@ Thisenables the feature of auto-expanding snippets when matching the pattern
#+begin_src emacs-lisp :tangle packages.el
(package! leetcode)
#+end_src
*** gptel
#+begin_src emacs-lisp
(use-package! gptel
:config
(setq! gptel-api-key "e994f45f9b46cc8608bd2e9cd508417255514e96913b1764aab612512aa66449")
(setq gptel-model 'claude-sonnet-4.5)
(setq gptel-backend (gptel-make-gh-copilot "Copilot"))
)
#+end_src
#+RESULTS:
: t
** Lang
*** Typst
**** Tree-sitter
@@ -185,6 +199,10 @@ Thisenables the feature of auto-expanding snippets when matching the pattern
(load-file "lisp/texpresso/texpresso.el")
#+end_src
*** Org
#+begin_src elisp
(add-to-list 'org-modules 'org-habit)
#+end_src
**** Latex live-preview (fast)
1. delete all org-* packages from emacs (can be done by deleting folders in .local/straight)
2. delete eln-cache
3. doom sync -u
@@ -271,4 +289,4 @@ Thisenables the feature of auto-expanding snippets when matching the pattern
)
#+end_src
hello