aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config
diff options
context:
space:
mode:
Diffstat (limited to 'Emacs/.config')
-rw-r--r--Emacs/.config/emacs/config.org35
1 files changed, 35 insertions, 0 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index 346b853..943c5b5 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -258,6 +258,41 @@ on setups for specific modes I think benefit from it.
(use-package evil-collection
:after evil)
#+END_SRC
+* Xwidget
+Xwidget is a package (that must be compiled at source) which allows
+for the insertion of arbitrary xwidgets into Emacs through
+buffers. One of its premier uses is in navigating the web which it
+provides through the function =xwidget-webkit-browse-url=. This
+renders a fully functional web browser within Emacs.
+
+Though I am not to keen on using Emacs to browse the web /via/ xwidget
+(EWW does a good job on its own), I am very interested in its
+capability to render full fledged HTML documents, as it may come of
+use when doing web development. I can see the results of work very
+quickly without switching windows or workspaces.
+#+BEGIN_SRC emacs-lisp
+(use-package xwidget
+ :straight nil
+ :general
+ (leader "au" #'xwidget-webkit-browse-url)
+ (general-def
+ :states 'normal
+ :keymaps 'xwidget-webkit-mode-map
+ "q" #'quit-window
+ "h" #'xwidget-webkit-scroll-backward
+ "j" #'xwidget-webkit-scroll-up
+ "k" #'xwidget-webkit-scroll-down
+ "l" #'xwidget-webkit-scroll-forward
+ (kbd "C-f") #'xwidget-webkit-scroll-up
+ (kbd "C-b") #'xwidget-webkit-scroll-down
+ "H" #'xwidget-webkit-back
+ "L" #'xwidget-webkit-forward
+ "gu" #'xwidget-webkit-browse-url
+ "gr" #'xwidget-webkit-reload
+ "gg" #'xwidget-webkit-scroll-top
+ "G" #'xwidget-webkit-scroll-bottom))
+#+END_SRC
+
* Ivy
Ivy is a completion framework for Emacs, and my preferred (sometimes
second favourite) one. It has a great set of features with little to