From 41ded7cd3b9129826d7caa4da51275628b2638c0 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sun, 28 Feb 2021 19:21:03 +0800 Subject: Bind durand-mu4e and lazy load eww. * init.el (global-map): Bind durand-mu4e. (eww): ("eww-conf.el"): Lazy load eww. --- init.el | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 1f879db..7f7ee4e 100644 --- a/init.el +++ b/init.el @@ -126,6 +126,8 @@ no effect." ;;;###autoload (load-after-function durand-mu4e "mail.el" "Open mu4e." t (mu4e)) +(define-key global-map (vector 3 109) #'durand-mu4e) + (add-to-list 'auto-mode-alist (cons "pdf$" #'pdf-view-mode)) ;;;###autoload @@ -252,7 +254,15 @@ no effect." ;;; eww -(load-config "eww-conf.el") +(load-after-function + eww "eww-conf.el" "Load eww and launch it." nil + (apply #'eww + (let* ((uris (eww-suggested-uris)) + (prompt (concat "Enter URL or keywords" + (if uris (format " (default %s)" (car uris)) "") + ": "))) + (list (read-string prompt nil 'eww-prompt-history uris) + (prefix-numeric-value current-prefix-arg))))) ;;; Viewing things -- cgit v1.2.3-18-g5258