|
@@ -175,13 +175,7 @@ browser."
|
|
|
(defun xwwp-follow-link-make-backend ()
|
|
(defun xwwp-follow-link-make-backend ()
|
|
|
"Instanciate a completion backend."
|
|
"Instanciate a completion backend."
|
|
|
(cond ((eq xwwp-follow-link-completion-system 'default)
|
|
(cond ((eq xwwp-follow-link-completion-system 'default)
|
|
|
- (cond ((require 'xwwp-follow-link-ivy nil t)
|
|
|
|
|
- #'xwwp-follow-link-completion-backend-ivy)
|
|
|
|
|
- ((require 'xwwp-follow-link-helm nil t)
|
|
|
|
|
- #'xwwp-follow-link-completion-backend-helm)
|
|
|
|
|
- ((require 'xwwp-follow-link-ido nil t)
|
|
|
|
|
- #'xwwp-follow-link-completion-backend-ido)
|
|
|
|
|
- (t #'xwwp-follow-link-completion-backend-default)))
|
|
|
|
|
|
|
+ #'xwwp-follow-link-completion-backend-default)
|
|
|
((eq xwwp-follow-link-completion-system 'ivy)
|
|
((eq xwwp-follow-link-completion-system 'ivy)
|
|
|
(unless (require 'xwwp-follow-link-ivy nil t)
|
|
(unless (require 'xwwp-follow-link-ivy nil t)
|
|
|
(user-error "Install the `xwwp-follow-link-ivy' package to use `xwwp-follow-link' with `ivy'"))
|
|
(user-error "Install the `xwwp-follow-link-ivy' package to use `xwwp-follow-link' with `ivy'"))
|
|
@@ -191,8 +185,7 @@ browser."
|
|
|
(user-error "Install the `xwwp-follow-link-helm' package to use `xwwp-follow-link' with `helm'"))
|
|
(user-error "Install the `xwwp-follow-link-helm' package to use `xwwp-follow-link' with `helm'"))
|
|
|
#'xwwp-follow-link-completion-backend-helm)
|
|
#'xwwp-follow-link-completion-backend-helm)
|
|
|
((eq xwwp-follow-link-completion-system 'ido)
|
|
((eq xwwp-follow-link-completion-system 'ido)
|
|
|
- (unless (require 'xwwp-follow-link-ido nil t)
|
|
|
|
|
- (user-error "Install the `xwwp-follow-link-ido' package to use `xwwp-follow-link' with `ido'"))
|
|
|
|
|
|
|
+ (require 'xwwp-follow-link-ido)
|
|
|
#'xwwp-follow-link-completion-backend-ido)
|
|
#'xwwp-follow-link-completion-backend-ido)
|
|
|
((eq xwwp-follow-link-completion-system 'default)
|
|
((eq xwwp-follow-link-completion-system 'default)
|
|
|
#'xwwp-follow-link-completion-backend-default)
|
|
#'xwwp-follow-link-completion-backend-default)
|