---
title: "#조직모드: #클립보드 복사 붙여넣기 #복붙 §org-rich-yank ◊kill-ring ◊yank"
url: "https://notes.junghanacs.com/notes/20241202T145837"
author: "Junghan Kim"
date: "2024-12-02T14:58:00+09:00"
lastmod: "2025-06-22T00:00:00+09:00"
tags: ["bib","orgmode","packages","emacs"]
description: "org-rich-yank와 kill-ring을 중심으로 조직모드 복붙 흐름을 정리한 실전 노트이다."
---

> [!abstract] 이 노트에 대하여
> 
> 코드와 파일 링크를 Org 문서에 복붙할 때 org-rich-yank가 어떤 편의를 주는지 정리한다. kill ring과 yank의 기본 메커니즘까지 함께 확인하는 복붙 실전 노트다.

## 2023 org-rich-yank 무엇인가?

[2023-11-08 Wed 12:58]

코드를 조직 모드 글에 복붙 할 때, 자동으로 블록 만들어 주고, 파일 링크 만들어 준다. 아래는 커스텀 링크 적용 예이다. 잘 된다.

```emacs-lisp
;; 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/Org-Rich-Yank” 2025](https://notes.junghanacs.com/notes/20241202T145837#citeproc_bib_item_1))

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/Org-Rich-Yank.” 2025. <https://github.com/unhammer/org-rich-yank>.
