diff options
author | JSDurand <mmemmew@gmail.com> | 2021-02-28 19:21:03 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2021-02-28 19:21:03 +0800 |
commit | 41ded7cd3b9129826d7caa4da51275628b2638c0 (patch) | |
tree | b967db082109e68168ec7ee3993a32c7cd462eed | |
parent | d28e259e0b5b736a0eb43e37410de5134e602589 (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.el | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |