aboutsummaryrefslogtreecommitdiff
path: root/Emacs
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-08-09 14:35:04 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-08-09 14:35:04 +0100
commit51be07b3c18eae89c2a6a567681b18cbfcb4e4b7 (patch)
treec2044c9d0f5fb475f703cc1aa98fcc68121bed04 /Emacs
parent20788fa75eb99b1c165ff8208de029b36eb5ec70 (diff)
downloaddotfiles-51be07b3c18eae89c2a6a567681b18cbfcb4e4b7.tar.gz
dotfiles-51be07b3c18eae89c2a6a567681b18cbfcb4e4b7.tar.bz2
dotfiles-51be07b3c18eae89c2a6a567681b18cbfcb4e4b7.zip
+xwidget configuration
Bindings mostly, with a nice long description.
Diffstat (limited to 'Emacs')
-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