Skip to content

Commit 6d670e1

Browse files
Move eaf-share-path-or-url define to eaf.el
1 parent 4a125cb commit 6d670e1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

eaf.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,6 +1542,13 @@ You can configure a blacklist using `eaf-find-file-ext-blacklist'"
15421542
(when (or (equal new-buff origin-buff) (equal app-name mode-name))
15431543
(setq finished t)))))
15441544

1545+
(defun eaf-share-path-or-url ()
1546+
"Share the current file path or web URL as QRCode."
1547+
(interactive)
1548+
(if (ignore-errors (require 'eaf-airshare))
1549+
(eaf-open (eaf-get-path-or-url) "airshare")
1550+
(message "You should install EAF application 'airshare' first.")))
1551+
15451552
;;;;;;;;;;;;;;;;;;;; Advice ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
15461553

15471554
;; FIXME: In the code below we should use `save-selected-window' (or even

0 commit comments

Comments
 (0)