diff options
author | jao <jao@gnu.org> | 2023-02-28 04:00:52 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2023-02-28 04:00:52 +0000 |
commit | b8b7b4f105edea6fce304876d36f361ecbb4f6db (patch) | |
tree | f8123004f71f704e986b98e81903d8e8214346ee | |
parent | c3e3ba1d93557fbb69d335811e8f4e6cbf2da730 (diff) | |
download | elibs-b8b7b4f105edea6fce304876d36f361ecbb4f6db.tar.gz elibs-b8b7b4f105edea6fce304876d36f361ecbb4f6db.tar.bz2 |
embark: stop using embark-define-keymap
-rw-r--r-- | custom/jao-custom-completion.el | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/custom/jao-custom-completion.el b/custom/jao-custom-completion.el index f87507b..c36dd85 100644 --- a/custom/jao-custom-completion.el +++ b/custom/jao-custom-completion.el @@ -262,17 +262,17 @@ (cons 'url lnk) (cons 'org-link (match-string-no-properties 0))))))) -(embark-define-keymap jao-embark-targets-org-link-map - "Actions for org links" - ((kbd "RET") org-open-link-from-string)) +;; (embark-define-keymap jao-embark-targets-org-link-map +;; "Actions for org links" +;; ((kbd "RET") org-open-link-from-string)) (defun jao-embark-targets--gl-org-link () (when (org-in-regexp org-link-bracket-re) (cons 'gl-org-link (match-string-no-properties 0)))) -(embark-define-keymap jao-embark-targets-gl-org-link-map - "Actions for exteranl org links" - ((kbd "RET") org-open-at-point-global)) +;; (embark-define-keymap jao-embark-targets-gl-org-link-map +;; "Actions for exteranl org links" +;; ((kbd "RET") org-open-at-point-global)) (add-to-list 'embark-target-finders #'jao-embark-targets--gl-org-link) (add-to-list 'embark-keymap-alist @@ -342,11 +342,11 @@ (interactive "sURL: ") (jao-embark-targets--play-video "vlc" url)) -(embark-define-keymap jao-embark-targets-video-url-map - "Actions on URLs pointing to remote video streams." - :parent embark-url-map - ("v" jao-embark-targets-vlc) - ("RET" jao-embark-targets-mpv)) +;; (embark-define-keymap jao-embark-targets-video-url-map +;; "Actions on URLs pointing to remote video streams." +;; :parent embark-url-map +;; ("v" jao-embark-targets-vlc) +;; ("RET" jao-embark-targets-mpv)) (add-to-list 'embark-transformer-alist '(url . jao-embark-targets--refine-url)) (add-to-list 'embark-keymap-alist '(video-url . jao-embark-targets-video-url-map)) |