feat: add markdown drag-and-drop for blog images

- Fix org DND flag: +download-dnd → +dragndrop (was silently no-op)
- New qwan-markdown-dnd.el: handles file drops in markdown buffers
  copies images to configurable attachment dir (default: attachments/)
  inserts markdown image links at point
  per-repo config via .dir-locals.el (qwan-markdown-attachment-dir)
- AGENTS.md: document the new module and DND setup
This commit is contained in:
Willem van den Ende
2026-06-28 13:23:59 +02:00
parent 717c358ce3
commit 6c2a08bee5
4 changed files with 206 additions and 3 deletions
+7
View File
@@ -318,6 +318,7 @@
(add-load-path! "~/.doom.d/qwan")
(require 'qwan-blog)
(require 'qwan-refactor)
(require 'qwan-markdown-dnd)
;; Elfeed RSS configuration
;; Feeds are defined in org-directory (same as org-roam-directory)
@@ -389,6 +390,12 @@
(setq gptel-default-mode 'org-mode) ;; LLM replies in org-mode format
(require 'gptel-integrations)) ;; <- for mcp
;; emacs mode for pi
(use-package! pi-coding-agent
:commands pi
:init (defalias 'pi 'pi-coding-agent)
:custom pi-coding-agent-executable '("devcontainer" "exec" "pi"))
;; Load machine-specific configuration (gptel backends, etc.)
(load! "config-mac.el" doom-user-dir t)