2023 org-rich-yank 무엇인가?
코드를 조직 모드 글에 복붙 할 때, 자동으로 블록 만들어 주고, 파일 링크 만들어 준다. 아래는 커스텀 링크 적용 예이다. 잘 된다.
;; https://github.com/unhammer/org-rich-yank If you want to change how the
;; source block or link is formatted, you can do so by setting
;; org-rich-yank-format-paste to a function. For example, links to local files
;; might be useful in your org document but not so useful in exported content,
;; so you may want to make such a link a comment line.
;; 소스 블록 또는 링크의 서식을 변경하려면 org-rich-yank-format-paste 을 함수로
;; 설정하여 변경할 수 있습니다. 예를 들어 로컬 파일에 대한 링크는 조직
;; 문서에서는 유용하지만 내보낸 콘텐츠에서는 유용하지 않을 수 있으므로 이러한
;; 링크를 주석 줄로 만들 수 있습니다.
(defun my/org-rich-yank-format-paste (language contents link)
"Based on `org-rich-yank--format-paste-default'."
(format "#+BEGIN_SRC %s\n%s\n#+END_SRC\n#+comment: %s"
language
(org-rich-yank--trim-nl contents)
link))
(customize-set-variable 'org-rich-yank-format-paste #'my/org-rich-yank-format-paste)
unhammer/org-rich-yank
(Unhammer [2018] 2025)
Unhammer, Kevin Brubeck
📋 Rich text clipboard for org-mode: Paste as a \#+BEGIN\_SRC block of correct mode, with link to where it came from
관련노트
BIBLIOGRAPHY
Unhammer, Kevin Brubeck. (2018) 2025. “Unhammer/Org-Rich-Yank.” https://github.com/unhammer/org-rich-yank.