2020-11-25 08:32:51 +01:00
|
|
|
* EmacsWebkit
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
(straight-use-package
|
2020-12-11 17:48:47 +01:00
|
|
|
'(webkit :type git :host github :repo "akirakyle/emacs-webkit" :branch "main"
|
2020-11-25 08:32:51 +01:00
|
|
|
:files (:defaults "*.js" "*.css" "*.h" "*.c" "Makefile")
|
2020-12-11 17:48:47 +01:00
|
|
|
:build (("nix-shell" "-p" "gtk3" "gcc" "glib" "pkg-config" "webkit" "--command" "'make debug'"))))
|
2020-11-25 08:32:51 +01:00
|
|
|
|
2020-12-11 17:48:47 +01:00
|
|
|
(use-package webkit
|
|
|
|
:straight t
|
|
|
|
:bind ("s-b" . 'webkit) ;; Bind to whatever global key binding you want if you want
|
|
|
|
:init
|
|
|
|
(setq webkit-search-prefix "https://duckduckgo.com/search?q=")
|
|
|
|
; (setq webkit-ace-chars "aoeuidhtns") ;; More convienent if you use dvorak
|
|
|
|
;; (setq webkit-history-filename "~/path/to/webkit-history") ;; If you want history saved in a different place
|
|
|
|
;; (setq webkit-history-filename nil) ;; If you don't want history saved to file (will stay in memory)
|
|
|
|
;; (setq webkit-own-window t) ;; See above explination; must be set before webkit.el is loaded
|
|
|
|
;; (setq browse-url-browser-function 'webkit-browse-url) ; Set as the default browse-url browser
|
|
|
|
;; (setq webkit-browse-url-force-new t) ; Always open a new session instead of reusing a current one
|
|
|
|
:config
|
|
|
|
(setq webkit-own-window nil)
|
|
|
|
;; (add-hook 'webkit-new-hook #'webkit-enable-javascript)
|
|
|
|
)
|
2020-11-25 08:32:51 +01:00
|
|
|
#+END_SRC
|
|
|
|
** Evil integration
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
; (use-package evil-collection-webkit
|
|
|
|
; :straight t
|
|
|
|
; :config
|
|
|
|
; (evil-collection-xwidget-setup))
|
|
|
|
#+END_SRC
|