Different link copy function btwn wsl and other

This commit is contained in:
Emmet 2023-10-13 08:18:50 -05:00
parent 456859aad9
commit b128296b14
2 changed files with 14 additions and 6 deletions

View file

@ -429,9 +429,13 @@ same directory as the org-buffer and insert a link to this file."
(shell-command "~/.emacs.d/scripts/copy-link-or-file/copy-link-or-file-to-clipboard.sh " nil nil)
)
(if (string= system-nix-profile "wsl")
(map! :leader
:desc "Copy link at point"
"y y" 'link-hint-copy-link-at-point)
(map! :leader
:desc "Copy link/file at point into system clipbord (C-g to escape if copying a file)"
"y y" 'org-copy-link-to-clipboard-at-point)
"y y" 'org-copy-link-to-clipboard-at-point))
;; Online images inside of org mode is pretty cool
;; This snippit is from Tobias on Stack Exchange

View file

@ -508,9 +508,13 @@ same directory as the org-buffer and insert a link to this file."
(shell-command "~/.emacs.d/scripts/copy-link-or-file/copy-link-or-file-to-clipboard.sh " nil nil)
)
(if (string= system-nix-profile "wsl")
(map! :leader
:desc "Copy link at point"
"y y" 'link-hint-copy-link-at-point)
(map! :leader
:desc "Copy link/file at point into system clipbord (C-g to escape if copying a file)"
"y y" 'org-copy-link-to-clipboard-at-point)
"y y" 'org-copy-link-to-clipboard-at-point))
#+END_SRC
**** Copy Link/File to Clipboard Helper Script