summaryrefslogtreecommitdiffhomepage
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/init.el b/init.el
index a59989a..b1771a4 100644
--- a/init.el
+++ b/init.el
@@ -951,15 +951,16 @@
(jao-load-path "consult-recoll")
(defun jao-recoll-format (title url mtype)
- (let* ((u (replace-regexp-in-string "/home/jao/" "" url))
+ (let* ((u (replace-regexp-in-string "file://" "" url))
+ (u (replace-regexp-in-string "/home/jao/" "" u))
(u (replace-regexp-in-string
"\\(doc\\|org/doc\\|.emacs.d/gnus/Mail\\|var/mail\\)/" "" u)))
- (format "%s (%s, %s)"
+ (format "%s (%s)" ;; "%s (%s, %s)"
title
(propertize u 'face 'jao-themes-f00)
(propertize mtype 'face 'jao-themes-f01))))
-(defun jao-recoll-open-html (file)
+(defun jao-recoll-open-html (file &optional page)
(jao-afio--goto-www)
(eww-open-file file))
@@ -981,6 +982,7 @@
'(("application/pdf" . jao-open-doc)
("text/html" . jao-recoll-open-html))
consult-recoll-search-flags nil
+ consult-recoll-inline-snippets t
consult-recoll-format-candidate #'jao-recoll-format)
:config
(consult-customize consult-recoll :preview-key 'any)