mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Different link copy function btwn wsl and other
This commit is contained in:
parent
456859aad9
commit
b128296b14
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue