summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-02-28 19:21:03 +0800
committerJSDurand <mmemmew@gmail.com>2021-02-28 19:21:03 +0800
commit41ded7cd3b9129826d7caa4da51275628b2638c0 (patch)
treeb967db082109e68168ec7ee3993a32c7cd462eed
parentd28e259e0b5b736a0eb43e37410de5134e602589 (diff)
Bind durand-mu4e and lazy load eww.
* init.el (global-map): Bind durand-mu4e. (eww): ("eww-conf.el"): Lazy load eww.
-rw-r--r--init.el12
1 files changed, 11 insertions, 1 deletions
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