asx

Ask StackExchange/StackOverflow


Keywords
convenience, emacs, stackexchange
License
GPL-3.0

Documentation

example.gif

This package allows you to search any StackExchange site specified in asx-sites and insert the top post in an Org-mode buffer. For better searching, this uses Google and DuckDuckGo as it is superior to StackExchange’s searching capabilities. More search engines can be defined using asx-search-engine-alist.

Inspired by this reddit post and howdoyou.el, I decided to build a more robust experience and make it compatible with Org-mode.

I chose to scrape the StackExchange posts, as StackExchange’s API only allows searching/getting posts from a single site.

Install

Available on MELPA.

Usage

Run M-x asx and enter query when prompted.

Configuration

Variable Notes Default
asx-sites Sites to search. ("stackoverflow.com" ...)
asx-search-engine Search engine to use. google
asx-search-engine-alist Alist of search engine configuration. ((google ..) (duckduckgo ..))
asx-number-of-answers Answers to include. 3
asx-prompt-post-p If non-nil, prompt for post to show. Otherwise show the first post. nil
asx-buffer-name Name of buffer to insert post. *AskStackExchange*

Commands

Variable Notes
asx Search for query.
asx-next-post Go to next post.
asx-previous-post Go to previous post.
asx-reload-post Reload current post.
asx-go-back-to-first-post Go to first post.

Similar projects