내부링크 - Internal Links
아. 이건 프롯 닷파일을 확인하라. 매뉴얼 작성할 때도 유용하다. 아무렴.
Use :: [[https://orgmode.org/manual/Internal-Links.html][Internal Links (The Org Manual)]]
1) 헤딩 이름으로 이동 -- 쉽지만, 이름 바뀌면 불가
[[*[[*TEST][TEST]]] ]
2) CUSTOMID
[[#TEST] ]
내부링크 연결 생성 my/link-to-headline
;; https://www.reddit.com/r/emacs/comments/yjobc2/comment/iur16c7/
(defun my/parse-headline (x)
(plist-get (cadr x) :raw-value))
(defun my/get-headlines ()
(org-element-map (org-element-parse-buffer) 'headline #'my/parse-headline))
(defun my/link-to-headline ()
"Insert an internal link to a headline."
(interactive)
(let* ((headlines (my/get-headlines))
(choice (completing-read "Headings: " headlines nil t))
(desc (read-string "Description: " choice)))
(org-insert-link buffer-file-name (concat "*" choice) desc)))
쿼츠의 경우, 헤드라인 지침
아래 문서 참고 - ’, . ’ 불가!
#쿼츠: #내보내기 #검증 #테스트 - 이미지 서지정보 동영상
링크 색상 구분 문제 org-link
오그롬 : 디노트 : url 이랑 구분이 안간다.
- vanilla/novoid-dotfiles-uomf/config https://github.com/novoid/dot-emacs
/home/junghan/sync/man/dotsamples/vanilla/novoid-dotfiles-uomf/config.org
2021-01-11 | moved commands to my-set-linkcolors and defined 3 categories of colors |
- I got the idea from: https://www.reddit.com/r/emacs/comments/hywxef/visually_differentiate_between_links_to_files_and/
- possible values for faces: https://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link-features-in-org-9/
- and
add-face-text-property
: https://www.gnu.org/software/emacs/manual/html_node/elisp/Faces.html#Faces
- and
- Emacs colors: http://www.raebear.net/computers/emacs-colors/
- If you are interested in taking this any further: https://github.com/stardiviner/org-link-beautify
(progn
(setq my-linkcolor-org "wheat3")
(setq my-linkcolor-file "MediumSeaGreen")
(setq my-linkcolor-web "MediumSeaGreen")
(defun my-set-linkcolors ()
"Defines the colors of various link colors"
(interactive)
;; Org links --------------------------------------------------------------------------
;; (org-link-set-parameters "id" :face `(:bold t :underline t))
;; (org-link-set-parameters "contact" :face `(:foreground ,my-linkcolor-org :bold t :underline t))
;; File links --------------------------------------------------------------------------
;; (org-link-set-parameters "file" :face `(:foreground ,my-linkcolor-file :slant 'italic))
;; (org-link-set-parameters "pdf" :face `(:foreground ,my-linkcolor-file :underline t))
;; (org-link-set-parameters "ISO" :face `(:foreground ,my-linkcolor-file :underline t))
;; Web links --------------------------------------------------------------------------
(org-link-set-parameters "http" :face `(:foreground ,my-linkcolor-web :underline t))
(org-link-set-parameters "https" :face `(:foreground ,my-linkcolor-web :underline t))
)
)
Doom-Emacs
: Built-in custom link types
This module defines a number of custom link types in +org-init-custom-links-h
. They are (with examples):
;; +org-init-custom-links-h
(pushnew! org-link-abbrev-alist
'("github" . "https://github.com/%s")
'("youtube" . "https://youtube.com/watch?v=%s")
'("google" . "https://google.com/search?q=")
'("gimages" . "https://google.com/images?q=%s")
'("gmap" . "https://maps.google.com/maps?q=%s")
'("kagi" . "https://kagi.com/search?q=%s")
'("duckduckgo" . "https://duckduckgo.com/?q=%s")
'("wikipedia" . "https://en.wikipedia.org/wiki/%s")
'("wolfram" . "https://wolframalpha.com/input/?i=%s")
'("doom-repo" . "https://github.com/doomemacs/doomemacs/%s")
`("emacsdir" . ,(doom-path doom-emacs-dir "%s"))
`("doomdir" . ,(doom-path doom-user-dir "%s")))