summaryrefslogtreecommitdiff
path: root/.config/emacs/modules/bd--eww.el
diff options
context:
space:
mode:
authorbd <bdunahu@colostate.edu>2024-01-21 00:02:43 -0700
committerbd <bdunahu@colostate.edu>2024-01-21 00:02:43 -0700
commit0b80aa70c180b68cbc00c38c03d38a2d6d0724de (patch)
tree5128767566d16d3835fea2694498dd74818278fc /.config/emacs/modules/bd--eww.el
parent702952615f807121e43207a50eeeef6294ad2505 (diff)
Enabled limited variable pitch fonts, Chromium app-mode search
Diffstat (limited to '.config/emacs/modules/bd--eww.el')
-rw-r--r--.config/emacs/modules/bd--eww.el15
1 files changed, 14 insertions, 1 deletions
diff --git a/.config/emacs/modules/bd--eww.el b/.config/emacs/modules/bd--eww.el
index 7bde428..31ff15b 100644
--- a/.config/emacs/modules/bd--eww.el
+++ b/.config/emacs/modules/bd--eww.el
@@ -1,9 +1,22 @@
;; -*- lexical-binding: t; -*-
+;;;; chromium
+;; less chromium the better
+(defun chromium (url)
+ "Given a user url or search term, opens chromium
+in application mode. Application mode removes foreign
+tabs and search bars, better integrating with emacs."
+ (interactive "sEnter url or keywords: ")
+ (setq url (eww--dwim-expand-url url))
+ (start-process-shell-command "chromium" nil (concat "chromium --incognito --app=\"" url "\"")))
+
+
+;;(defun bd/eww-open-chromium
+;;;; eww
;; do not use an external browser
(setopt browse-url-browser-function 'eww-browse-url
- shr-use-fonts nil
+ shr-use-fonts t
shr-cookie-policy nil
shr-max-width 85
;; send only user agent