summaryrefslogtreecommitdiff
path: root/.config/doom/config.el
diff options
context:
space:
mode:
Diffstat (limited to '.config/doom/config.el')
-rw-r--r--.config/doom/config.el25
1 files changed, 15 insertions, 10 deletions
diff --git a/.config/doom/config.el b/.config/doom/config.el
index 11eb6571..9d67a4d2 100644
--- a/.config/doom/config.el
+++ b/.config/doom/config.el
@@ -74,11 +74,9 @@
("B" "Book on the to-read-list" entry (file+headline "~/org/private.org" "Libros para leer") (file "~/org/templates/book.org") :empty-lines-after 2)
("p" "Create a daily plan")
("pP" "Daily plan private" plain (file+olp+datetree "~/org/plan-free.org") (file "~/org/templates/dailyplan.org") :immediate-finish t :jump-to-captured t)
- ("pX" "Daily plan X-Team" plain (file+olp+datetree "~/org/plan-xteam.org") (file "~/org/templates/dailyplan.org") :immediate-finish t :jump-to-captured t)
("pL" "Daily plan Lazer" plain (file+olp+datetree "~/org/plan-lazer.org") (file "~/org/templates/dailyplan.org") :immediate-finish t :jump-to-captured t)
("j" "Journal entry")
("jP" "Journal entry private" entry (file+olp+datetree "~/org/journal-private.org") "** %U - %^{Heading}")
- ("jX" "Journal entry X-Team" entry (file+olp+datetree "~/org/journal-xteam.org") "** %U - %^{Heading}")
("jL" "Journal entry Lazer" entry (file+olp+datetree "~/org/journal-lazer.org") "** %U - %^{Heading}")
)))
;; Custom agenda views
@@ -183,10 +181,6 @@
(interactive)
(setq org-agenda-files '("~/org/private.org"))
(message "Focusing on private Org files"))
- (defun org-focus-xteam() "Set focus on X-Team things."
- (interactive)
- (setq org-agenda-files '("~/org/xteam.org"))
- (message "Focusing on X-Team Org files"))
(defun org-focus-lazer() "Set focus on Lazer things."
(interactive)
(setq org-agenda-files '("~/org/lazer.org"))
@@ -259,7 +253,8 @@ text and copying to the killring."
;; (require 'auto-virtualenv)
(after! python
:init
- (add-hook 'python-mode-hook #'poetry-tracking-mode)
+ (require 'auto-virtualenv)
+ (add-hook 'python-mode-hook 'auto-virtualenv-set-virtualenv)
(setq enable-local-variables :all)
(setq poetry-tracking-strategy 'projectile))
@@ -336,7 +331,6 @@ text and copying to the killring."
(:prefix-map ("a" . "applications")
:desc "HTTP Status cheatsheet" "h" #'helm-httpstatus)
(:prefix-map ("ao" . "org")
- :desc "Org focus X-Team" "x" #'org-focus-xteam
:desc "Org focus Lazer" "l" #'org-focus-lazer
:desc "Org focus private" "p" #'org-focus-private
:desc "Org focus all" "a" #'org-focus-all
@@ -352,9 +346,20 @@ text and copying to the killring."
(add-hook 'magit-mode-hook (lambda () (magit-delta-mode +1)))
-(setq chatgpt-shell-model-version "gpt-4-1106-preview")
+(setq chatgpt-shell-model-version "gpt-4o")
(setq chatgpt-shell-streaming "t")
(setq chatgpt-shell-system-prompt "You are a senior developer knowledgeable in every programming language")
+(setq chatgpt-shell-openai-key openai-key)
+(setq dall-e-shell-openai-key openai-key)
+
+(require 'llm-openai)
+(setq magit-gptcommit-llm-provider (make-llm-openai :key openai-key))
+(setq llm-warn-on-nonfree nil)
+
+(after! magit
+ (magit-gptcommit-mode 1)
+ (setq magit-gptcommit-prompt "You are an expert programmer writing a commit message. You went over every file diff that was changed in it. Summarize the commit into a single specific and cohesive theme. Remember to write in only one line, no more than 50 characters. Write your response using the imperative tense following the kernel git commit style guide. Write a high level title. THE FILE DIFFS:```%s```. Now write Commit message in follow template: [one line of summary]")
+ (magit-gptcommit-status-buffer-setup))
(use-package! copilot
:hook (prog-mode . copilot-mode)
@@ -374,4 +379,4 @@ text and copying to the killring."
(setq org-babel-default-header-args:plantuml
'((:results . "verbatim") (:exports . "results") (:cache . "no")))
(after! org
-(add-to-list 'org-src-lang-modes '("plantuml" . plantuml)))
+ (add-to-list 'org-src-lang-modes '("plantuml" . plantuml)))