mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-30 12:06:13 +01:00
31 lines
1.4 KiB
Org Mode
31 lines
1.4 KiB
Org Mode
|
* EmacsWebkit
|
||
|
#+BEGIN_SRC emacs-lisp :tangle no
|
||
|
(straight-use-package
|
||
|
'(webkit :type git :host github :repo "akirakyle/emacs-webkit" :branch "main"
|
||
|
:files (:defaults "*.js" "*.css" "*.h" "*.c" "Makefile")
|
||
|
:build (("nix-shell" "-p" "gtk3" "gcc" "glib" "pkg-config" "webkit" "--command" "'make debug'"))))
|
||
|
|
||
|
(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)
|
||
|
)
|
||
|
#+END_SRC
|
||
|
** Evil integration
|
||
|
#+BEGIN_SRC emacs-lisp
|
||
|
; (use-package evil-collection-webkit
|
||
|
; :straight t
|
||
|
; :config
|
||
|
; (evil-collection-xwidget-setup))
|
||
|
#+END_SRC
|