Compare commits

..

No commits in common. "64c4f544b685ac6339b1cadc4b48e60b971b29e7" and "21958b9ba09b0a0ed5bc6a7a65094b41ba9fa97f" have entirely different histories.

View File

@ -93,21 +93,3 @@
(make-string (window-width) 9472) (make-string (window-width) 9472)
"\n" "\n"
(org-agenda-format-date-aligned date)))) (org-agenda-format-date-aligned date))))
;; org mode hack for screenshots; see org mode hacks page.
(defun my-org-screenshot ()
"Take a screenshot into a time stamped unique-named file in the
same directory as the org-buffer and insert a link to this file.
reference: https://orgmode.org/worg/org-hacks.html"
(interactive)
(setq filename
(concat
(make-temp-name
(concat (buffer-file-name)
"_"
(format-time-string "%Y%m%d_%H%M%S_")) ) ".png"))
(call-process "import" nil nil nil filename)
(insert (concat "[[" filename "]]"))
(org-display-inline-images))
(global-set-key (kbd "C-c C-s") 'my-org-screenshot)