Skip to content

Commit

Permalink
feat: fallback to embark in link-hint
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Jun 25, 2024
1 parent 1a264cb commit 0cd71f5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lisp/init-edit.el
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,17 @@
(use-package link-hint
:bind (("M-o" . link-hint-open-link)
("C-c l o" . link-hint-open-link)
("C-c l c" . link-hint-copy-link)))
("C-c l c" . link-hint-copy-link))
:init
(with-eval-after-load 'embark
(setq link-hint-action-fallback-commands
(list :open (lambda ()
(condition-case _
(progn
(embark-dwim)
t)
(error
nil)))))))

;; Jump to Chinese characters
(use-package ace-pinyin
Expand Down

0 comments on commit 0cd71f5

Please sign in to comment.