From 2f590f133e154020ad92cd8e2f01bfb393e4886f Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Mon, 25 Sep 2023 17:09:26 -0300 Subject: General emacs improvements --- .config/doom/config.el | 10 ++++------ .config/doom/init.el | 2 +- .config/doom/packages.el | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) (limited to '.config/doom') diff --git a/.config/doom/config.el b/.config/doom/config.el index 7b482687..11f73070 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -341,7 +341,9 @@ text and copying to the killring." ;; Save all org buffers on each save (add-hook 'auto-save-hook 'org-save-all-org-buffers) - (add-hook 'after-save-hook 'org-save-all-org-buffers)) + (add-hook 'after-save-hook 'org-save-all-org-buffers) + (require 'org-download) + (add-hook 'dired-mode-hook 'org-download-enable)) ;; My own menu (map! :leader @@ -445,14 +447,10 @@ text and copying to the killring." ;;;; Use delta instead of the default diff (add-hook 'magit-mode-hook (lambda () (magit-delta-mode +1))) -;; Misc - -(beacon-mode t) - ;; ChatGPT (setq chatgpt-shell-model-version "gpt-4") (setq chatgpt-shell-streaming "t") -(setq chatgpt-shell-system-prompt "You are a senior Python developer in charge of maintaining a very big application") +(setq chatgpt-shell-system-prompt "You are a senior developer knowledgeable in every programming language") ;; Github Copilot ;; accept completion from copilot and fallback to company diff --git a/.config/doom/init.el b/.config/doom/init.el index 035552bb..5127e8da 100644 --- a/.config/doom/init.el +++ b/.config/doom/init.el @@ -136,7 +136,7 @@ ;;fstar ; (dependent) types and (monadic) effects and Z3 ;;gdscript ; the language you waited for (go +lsp) ; the hipster dialect - ;;(graphql +lsp) ; Give queries a REST + (graphql +lsp) ; Give queries a REST ;;(haskell +lsp) ; a language that's lazier than I am ;;hy ; readability of scheme w/ speed of python ;;idris ; a language you can depend on diff --git a/.config/doom/packages.el b/.config/doom/packages.el index 4401c9ec..cf8860a9 100644 --- a/.config/doom/packages.el +++ b/.config/doom/packages.el @@ -63,10 +63,10 @@ (package! butler) (package! copilot :recipe (:host github :repo "zerolfx/copilot.el" :files ("*.el" "dist"))) -(package! beacon) (package! plantuml-mode) (package! chatgpt-shell) (package! ob-chatgpt-shell) (package! dall-e-shell) (package! ob-dall-e-shell) (package! magit-delta) +(package! org-download) -- cgit v1.2.3