diff --git a/user/app/doom-emacs/config.el b/user/app/doom-emacs/config.el index 03fcef0f..71c9c0e6 100644 --- a/user/app/doom-emacs/config.el +++ b/user/app/doom-emacs/config.el @@ -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) ) -(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) +(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)) ;; Online images inside of org mode is pretty cool ;; This snippit is from Tobias on Stack Exchange diff --git a/user/app/doom-emacs/doom.org b/user/app/doom-emacs/doom.org index 3959b992..0d22f69b 100644 --- a/user/app/doom-emacs/doom.org +++ b/user/app/doom-emacs/doom.org @@ -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) ) -(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) +(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)) #+END_SRC **** Copy Link/File to Clipboard Helper Script