From 9bbfbab70ee58cdc6e66ac7db5a7356c0fd2bfcc Mon Sep 17 00:00:00 2001 From: Frederik Vanrenterghem Date: Wed, 9 Apr 2025 22:27:09 +0800 Subject: [PATCH] Use LLM using Emacs gptel. --- emacs/.emacs.d/init.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 89adbf7..4d18ad8 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -687,6 +687,14 @@ minutes), and return a formatted Org timestamp with start and end times." (setq emms-player-mpd-server-port "6600") (emms-player-mpd-connect)) +(use-package gptel + :ensure t + :config + ;; Key binding to start gptel interaction + (global-set-key (kbd "C-c g") 'gptel) + ;; Set org-mode as the default mode for gptel + (setq gptel-default-mode 'org-mode)) + ;; Custom functions ;; Might want to run this automatically -- 2.39.5