Fixed formatting issues

This commit is contained in:
Roger Gonzalez 2025-04-10 16:59:35 -03:00
parent eb8965f9df
commit b9066f4051
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
2 changed files with 23 additions and 3 deletions

View File

@ -469,6 +469,24 @@ related notes or tasks."
(add-hook 'magit-mode-hook (lambda () (magit-delta-mode +1))) (add-hook 'magit-mode-hook (lambda () (magit-delta-mode +1)))
(defun my/magit-gptcommit-commit-accept-wrapper (orig-fun &rest args)
"Wrapper for magit-gptcommit-commit-accept to preserve original message."
(when-let ((buf (magit-commit-message-buffer)))
(with-current-buffer buf
(let ((orig-message (string-trim-right (or (git-commit-buffer-message) "") "\n$")))
(apply orig-fun args)
(unless (string-empty-p orig-message)
(save-excursion
(goto-char (point-min))
(insert orig-message)))))))
(advice-add 'magit-gptcommit-commit-accept
(map! :leader
(:prefix-map ("l" . "LLMs")
:desc "Aidermacs" "a" #'aidermacs-transient-menu
:desc "ChatGPT Shell" "c" #'chatgpt-shell-transient))
(setq chatgpt-shell-model-version "gemini-2.5-pro-exp") (setq chatgpt-shell-model-version "gemini-2.5-pro-exp")
(setq chatgpt-shell-streaming "t") (setq chatgpt-shell-streaming "t")
(setq chatgpt-shell-system-prompt "You are a senior developer knowledgeable in every programming language") (setq chatgpt-shell-system-prompt "You are a senior developer knowledgeable in every programming language")

View File

@ -487,11 +487,11 @@ derived from emails, leverages powerful text editing capabilities for composing
consistent keyboard-driven interface. consistent keyboard-driven interface.
Key components of this setup: Key components of this setup:
- **Backend Tools:** Uses =mbsync= (from =isync=) for fetching mail via IMAP and =msmtp= for sending mail - Backend Tools: Uses =mbsync= (from =isync=) for fetching mail via IMAP and =msmtp= for sending mail
via SMTP. These are external tools that =mu4e= interfaces with. via SMTP. These are external tools that =mu4e= interfaces with.
- **Mail Storage:** Mail is stored locally in the Maildir format specified by =mu4e-maildir= (=~/.mail=), - Mail Storage: Mail is stored locally in the Maildir format specified by =mu4e-maildir= (=~/.mail=),
enabling offline access and fast searching via the =mu= indexer. enabling offline access and fast searching via the =mu= indexer.
- **Configuration Structure:** The settings are broken down into logical blocks below: Basic Setup, - Configuration Structure: The settings are broken down into logical blocks below: Basic Setup,
Composing, Viewing, Sending, Account Specific, and Custom Marks. Composing, Viewing, Sending, Account Specific, and Custom Marks.
*Note:* This setup requires the =mu= command-line tool and its Emacs interface, =mu4e=. If =mu4e= is *Note:* This setup requires the =mu= command-line tool and its Emacs interface, =mu4e=. If =mu4e= is
@ -888,6 +888,8 @@ The configuration below sets up Clipmon to check the clipboard every second and
(insert orig-message))))))) (insert orig-message)))))))
(advice-add 'magit-gptcommit-commit-accept (advice-add 'magit-gptcommit-commit-accept
#+end_src
** LLM ** LLM
:PROPERTIES: :PROPERTIES:
:ID: 0a32d2a9-2156-42a3-90f7-419ac1a25496 :ID: 0a32d2a9-2156-42a3-90f7-419ac1a25496