commit a1dc6967214fd9c76c77e2c6cbbdace172194eae parent 0a3cf3d5b96748850ee0dd42555297b416c1041f Author: michaelneuper <michael@michaelneuper.com> Date: Wed, 7 May 2025 18:15:08 +0200 add dragndrop support in org-mode Diffstat:
| M | config.org | | | 14 | ++++++++++++++ |
| M | init.el | | | 2 | +- |
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/config.org b/config.org @@ -361,6 +361,20 @@ See [[https://abode.karthinks.com/org-latex-preview/][https://abode.karthinks.co (setq org-latex-preview-live t) (setq org-latex-preview-live-debounce 0.25)) #+end_src +**** org-download (dragndrop) +#+begin_src emacs-lisp +(after! org-download + (setq org-download-method 'directory + org-download-image-dir "images" + org-download-link-format (format "[[file:%s/%%s]]" org-download-image-dir) + org-download-heading-lvl nil)) + +(map! :map org-mode-map + :localleader + :prefix ("a" . "attachments") + :desc "Rename image at point" + "C" #'org-download-rename-at-point) +#+end_src **** eye candy =org-modern= config modified from [[https://sophiebos.io/posts/beautifying-emacs-org-mode/][https://sophiebos.io/posts/beautifying-emacs-org-mode/]]. #+begin_src emacs-lisp diff --git a/init.el b/init.el @@ -138,7 +138,7 @@ ;;nim ; python + lisp at the speed of c ;;nix ; I hereby declare "nix geht mehr!" ;;ocaml ; an objective camel - (org +roam2) ; organize your plain life in plain text + (org +roam2 +dragndrop) ; organize your plain life in plain text ;;php ; perl's insecure younger brother ;;plantuml ; diagrams for confusing people more ;;graphviz ; diagrams for confusing yourself even more