Created
August 24, 2020 17:14
-
-
Save zzamboni/2401d890cc6d3ac9490b8d0bdb960336 to your computer and use it in GitHub Desktop.
Trying to define a new org-download keybinding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-package! org-download | |
:commands | |
org-download-clipboard | |
:defines | |
org-download-screenshot-basename | |
:init | |
(defun zz/org-download-paste-clipboard (&optional noask) | |
(interactive "P") | |
(let ((file | |
(if (not noask) | |
(read-string (format "Filename [%s]: " org-download-screenshot-basename) | |
nil nil org-download-screenshot-basename) | |
nil))) | |
(org-download-clipboard file))) | |
(map! :map org-mode-map "C-c l a b" #'zz/org-download-paste-clipboard)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment