-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconsult-web-sources.el
54 lines (43 loc) · 1.59 KB
/
consult-web-sources.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
;;; consult-web-sources.el --- Sources for Consulting Web Search Engines -*- lexical-binding: t -*-
;; Copyright (C) 2024 Armin Darvish
;; Author: Armin Darvish
;; Maintainer: Armin Darvish
;; Created: 2024
;; Version: 0.1
;; Homepage: https://github.com/armindarvish/consult-web
;; Keywords: convenience
;;; Commentary:
;;; Code:
(eval-when-compile
(require 'consult-web)
)
(setq consult-web-sources--all-modules-list
(list 'consult-web-bing
'consult-web-brave
'consult-web-brave-autosuggest
'consult-web-buffer
'consult-web-chatgpt
'consult-web-doi
'consult-web-duckduckgo
'consult-web-elfeed
'consult-web-google
'consult-web-google-autosuggest
'consult-web-gptel
'consult-web-line-multi
'consult-web-notes
'consult-web-pubmed
'consult-web-scopus
'consult-web-stackoverflow
'consult-web-wikipedia
'consult-web-youtube))
(defun consult-web-sources--load-module (symbol)
"Loads feature SYMBOL"
(require symbol))
(defun consult-web-sources-load-modules (&optional list)
"Loads the LIST of symbols.
If list is nil, loads `consult-web-sources-modules-to-load'and if that is nil as well, loads `consult-web-sources--all-modules-list'."
(mapcar #'consult-web-sources--load-module (or list consult-web-sources-modules-to-load consult-web-sources--all-modules-list)))
(consult-web-sources-load-modules)
;;; provide `consult-web-sources' module
(provide 'consult-web-sources)
;;; consult-web-sources.el ends here