diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-08-31 11:07:47 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-08-31 11:07:47 +0200 |
commit | de033f831b10fa84b0ba36f067788d2c7587dc7a (patch) | |
tree | 997b4939f9ff184619aee005a480d3e01a1e4368 /lisp | |
parent | e670268cc5dbaf1f4b0605a79ec63422bda03c3a (diff) |
buffer-spec for search buffers (so following works)
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-search.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/mastodon-search.el b/lisp/mastodon-search.el index 8d450e3..10e12c3 100644 --- a/lisp/mastodon-search.el +++ b/lisp/mastodon-search.el @@ -103,6 +103,11 @@ QUERY is the string to search." (mastodon-mode) (let ((inhibit-read-only t)) (erase-buffer) + (setq mastodon-tl--buffer-spec + `(buffer-name ,buffer + endpoint ,(format "api/v2/search") + update-function + (lambda (toot) (message "Searched.")))) ;; user results: (insert (mastodon-tl--set-face (concat "\n ------------\n" |