From 83122c1c1205e16f8900a92ff2572b5a4e319629 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 10 Aug 2020 12:32:17 +0100 Subject: ~moved xwidget --- Emacs/.config/emacs/config.org | 70 +++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'Emacs/.config/emacs/config.org') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 16ec39d..49df735 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -268,41 +268,6 @@ 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 @@ -389,6 +354,41 @@ ivy-switch-buffer once they're finished. (advice-add #'evil-window-vsplit :after #'ivy-switch-buffer) (advice-add #'evil-window-split :after #'ivy-switch-buffer))) #+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 + * Avy Setup avy with leader. #+BEGIN_SRC emacs-lisp -- cgit v1.2.3-13-gbd6f