Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mschuldt/bart-mode
Display real time BART departures in Emacs!
https://github.com/mschuldt/bart-mode
Last synced: 1 day ago
JSON representation
Display real time BART departures in Emacs!
- Host: GitHub
- URL: https://github.com/mschuldt/bart-mode
- Owner: mschuldt
- Created: 2017-04-16T19:46:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-01T10:05:13.000Z (over 5 years ago)
- Last Synced: 2025-01-09T22:37:09.563Z (9 days ago)
- Language: Emacs Lisp
- Homepage:
- Size: 121 KB
- Stars: 15
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
bart-mode provides long awaited access to real-time BART departure information from within Emacs:
[[./screenshot.png]]
* Install
Available from Melpa package repository.Or to install manually, clone this repo and in your config file:
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path "path/to/bart-mode")
(require 'bart-mode)
#+END_SRC
* Configure
The default station can be set with ~bart-station~ which must be set to a recognized station abbreviation.
For example, to set your default station to civic center:
#+BEGIN_SRC emacs-lisp
(setq bart-station 'civc)
#+END_SRC
The complete list of abbreviations can be viewed by using =M-x describe-variable= on =bart-stations=By default the bart buffer is displayed with ~display-buffer~. The option ~bart-manage-window~
can be used to display the bart window similar to how the calc window is displayed. This is disabled by default, to enable:
#+BEGIN_SRC emacs-lisp
(setq bart-manage-window t)
#+END_SRCThese options, and others, may also be set using customize: =M-x customize-group= and selecting the =bart= group
* Usage
To view real time bart departures:
: M-x bartsupported key commands:
| s | select another station |
| g | update |
| q | quit |
| a | toggle station abbreviation |* API key
Bart-mode comes with the public API key. If BART revokes this key due to abuse you may have to register for your
own at http://api.bart.gov/api/register.aspx