[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/engine-mode 4fa7ee6c06 14/71: Add documentation for changi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/engine-mode 4fa7ee6c06 14/71: Add documentation for changing the default browser |
Date: |
Wed, 21 Dec 2022 09:59:02 -0500 (EST) |
branch: elpa/engine-mode
commit 4fa7ee6c0605aec0ca485f381cb5e57d8cd72247
Author: Harry Schwartz <harry@thoughtbot.com>
Commit: Harry Schwartz <harry@thoughtbot.com>
Add documentation for changing the default browser
Technically this isn't part of engine-mode, but it's something that
users would conceivably want to know. Might as well explain it!
---
README.md | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 020d3383d1..d4fb291c16 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ region is selected) and search GitHub for it, displaying the
results
in your default browser.
The `defengine` macro can also take an optional key combination,
-prefixed with `engine/keymap-prefix' (which defaults to "C-c /"):
+prefixed with `engine/keymap-prefix` (which defaults to "C-c /"):
```emacs
(defengine duckduckgo
@@ -40,6 +40,23 @@ load path and globally enabling it:
(engine-mode t)
```
+## Changing your default browser
+
+`engine-mode` uses `browse-url` to open the URL it constructs. To
+change the browser that `browse-url` uses, you'll need to redefine
+the `browse-url-browser-function` variable.
+
+For example, to use Emacs' built-in `eww` browser:
+
+```emacs
+(setq browse-url-browser-function 'eww-browse-url)
+```
+
+The implementation of the `browse-url-browser-function` variable
+contains a comprehensive list of possible browsing functions. You can
+get to that by hitting `C-h v browser-url-browser-function <RETURN>`
+and following the link to `browse-url.el`.
+
## Examples
```emacs
- [nongnu] elpa/engine-mode 3d4d39f29c 16/71: License under GPLv3, (continued)
- [nongnu] elpa/engine-mode 3d4d39f29c 16/71: License under GPLv3, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 243d046914 35/71: make engine-mode keybinding prefix customizable, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 2c327f1785 24/71: Set engine-specific browsers, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 244610231f 34/71: Include a MELPA badge on the README, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 59f1d463fa 39/71: Fix rebind key conflict., ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 224919b648 29/71: Corrected Project Gutenberg URL., ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode eff5f26894 25/71: Add a custom variable to set the default browser, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 282f5d5910 62/71: Fix link to MELPA Stable status badge, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode f955a5b889 67/71: Fix issues found by package-lint, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode fac252e11d 19/71: Add documentation for redefining the keymap prefix, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 4fa7ee6c06 14/71: Add documentation for changing the default browser,
ELPA Syncer <=
- [nongnu] elpa/engine-mode 70bbde97bf 12/71: define a prefix key (which defaults to "C-c /"), ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 65e9a37fd0 44/71: Minimise side-effects when loading, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 50b0d436e8 42/71: Define prefixed map as an actual prefix command, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 1bfcc961c5 46/71: Set URL to the bare GitHub repo, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 20608906f8 61/71: Document installation with use-package, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode f36d8bf785 69/71: Prefer HTTPS to HTTP, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode e0910f141f 58/71: Don't quote term-transformation-hook value, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 278d4d9e9c 66/71: Allow nil value for engine/keybinding-prefix, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 408932727b 49/71: display the default word in prompt if available, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode a978c58675 68/71: Add .elpaignore for NonGNU ELPA, ELPA Syncer, 2022/12/21