• Stars
    star
    710
  • Rank 63,751 (Top 2 %)
  • Language
    Emacs Lisp
  • Created almost 12 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Stack Exchange for Emacs

SX – Stack Exchange for Emacs

https://travis-ci.org/vermiculus/sx.el.svg?branch=master http://melpa.org/packages/sx-badge.svg http://stable.melpa.org/packages/sx-badge.svg https://badges.gitter.im/Join Chat.svg https://badge.waffle.io/vermiculus/sx.el.svg

SX is a full-featured Stack Exchange mode for GNU Emacs 24+. Using the official API, it provides a versatile experience for the Stack Exchange network within Emacs itself.

list-and-question.png

Features

As always, C-h m is the definitive resource for functionality, but here are a few highlights:

Viewing Questions

Question Lists

View questions with one of the sx-tab- commands. These translate roughly to the different ‘tabs’ that you can view on the official site. Implemented tabs include:

sx-tab-all-questions
All questions.
sx-tab-unanswered
u Unanswered questions.
sx-tab-unanswered-my-tags
U Unanswered questions in your followed tags.
sx-tab-featured
f Featured questions.
sx-tab-starred
* Your starred questions.
sx-tab-frontpage
h The frontpage of the site.
sx-tab-meta-or-main
m Toggle between the meta and main sites.
sx-tab-newest
n Newest questions first.
sx-tab-topvoted
v Highest-scoring questions first.
sx-tab-week
w Hot questions of the week.

Inside SX buffers, you can switch to other tabs by typing s followed by the key listed with the tab above. You can also use sx-tab-switch (s t) to switch between tabs with completion. Each of these opens up a list of questions, and you can further customize the ordering of the list with O. Other keys include:

n and p
Navigate the list.
j and k
Navigate while viewing the question in a separate buffer.
s s
Switch site.
v
Visit the thing-at-point in your browser.
w
Copy the thing-at-point (usually a link).
u and d
Upvote and downvote.
RET
Open the question buffer.

Questions and Answers

u and d
Upvote and downvote the question, answer, or comment at point.
a
Add an answer.
e
Edit the question or answer (or comment if it’s yours; the usual rules apply)
*
Star the question.
K
Delete the question/answer/comment if you are able.
w
Copy code at point.

Your Inbox

sx-inbox
View your inbox
RET
Visit inbox item

Installation

SX is now available on MELPA! Both the stable release and the development version can be found there. Install it via the Package Menu or just run

M-x package-install RET sx RET

Authenticating

If you are going to be doing any asking/answering/commenting/upvoting/downvoting/ etc., you must use sx-authenticate to provide SX with an authentication token to act on your behalf.

After authentication, you will be redirected to the project page. This page will prominently display your authentication token. Keep this secret! It’s as good as your password as far as StackExchange is concerned. Copy and paste the token into the prompt in Emacs.

SX will store this authentication token in plain text in the sx folder of your .emacs.d. Please take any and all steps necessary to protect the security of your account. This token is as good as a password.

Sample Keybindings

With use-package

(require 'use-package)

(use-package sx
  :config
  (bind-keys :prefix "C-c s"
             :prefix-map my-sx-map
             :prefix-docstring "Global keymap for SX."
             ("q" . sx-tab-all-questions)
             ("i" . sx-inbox)
             ("o" . sx-open-link)
             ("u" . sx-tab-unanswered-my-tags)
             ("a" . sx-ask)
             ("s" . sx-search)))

Standard (With Prefix Key)

Shamelessly stolen from Endless Parentheses.

(define-prefix-command 'launcher-map)
(global-set-key (kbd "s-l") 'launcher-map)
(define-key launcher-map "qq" #'sx-tab-all-questions)
(define-key launcher-map "qi" #'sx-inbox)
(define-key launcher-map "qo" #'sx-open-link)
(define-key launcher-map "qu" #'sx-tab-unanswered-my-tags)
(define-key launcher-map "qa" #'sx-ask)
(define-key launcher-map "qs" #'sx-search)

Contributing

Please help contribute! Doing any of the following will help us immensely:

For a better view of all of the open issues, take a look at our lovely Waffle board. Feel free to take the torch on anything in backlog or ready. If you have thoughts on any other issues, don’t hesitate to chime in!

See also CONTRIBUTING.org.

Resources

Icons

SX has no explicit need for an icon, although standard SVG files have been gathered in resources/ if anyone would fancy a crack at it.

More Repositories

1

magithub

**DEPRECATED - please use Forge instead!** -- Magit-based interfaces to GitHub
Emacs Lisp
579
star
2

graphql.el

GraphQL utilities
Emacs Lisp
61
star
3

apiwrap.el

Generate wrappers for your API endpoints!
Emacs Lisp
47
star
4

emake.el

Test Elisp without the hoops
Emacs Lisp
26
star
5

ghub-plus

Wrappers for GitHub API resources built on ghub
Emacs Lisp
20
star
6

bible

Various translations of the Bible, typeset in TeX.
TeX
17
star
7

package-demo

Script your Emacs package demos!
Emacs Lisp
10
star
8

dotfiles

my dotfiles – designed to work on both windows and *nix
Emacs Lisp
8
star
9

auctex-lua

Lua editing utilities for AUCTeX
Emacs Lisp
7
star
10

dialogger.el

Emacs Lisp
3
star
11

emacs-mumps

Emacs MUMPS mode
Emacs Lisp
3
star
12

mcraw

calculate raw materials required to craft items
Python
3
star
13

resume-cv

TeX
3
star
14

pisnort

A delayed alarm system for the Raspberry Pi
Python
2
star
15

tex-termmenu

Terminal-based menus in TeX
TeX
2
star
16

texample

An online, free-access, collaborative repository of model TeX examples
TeX
2
star
17

garduino

Arduino
2
star
18

stash.el

Lightweight, Persistent Caching for Elisp
Emacs Lisp
2
star
19

refsheet

Reference sheet class for LaTeX2e
2
star
20

propbox

boxes with properties in LaTeX3
1
star
21

emake.el-example

Example repository using Emacs-Make
Emacs Lisp
1
star
22

tex-obj

an object system for expl3
TeX
1
star
23

seanallred.com

A personal and development blog.
HTML
1
star
24

brdcrmbs

Breadcrumbs for LaTeX documents
TeX
1
star
25

imdb-tex

A cool example of how TeX can be used for <insert project>
1
star
26

smcm-tex

A set of LaTeX document classes and other TeX resources for St. Mary's students
TeX
1
star