Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shime/emacs-livedown

Emacs plugin for Livedown.
https://github.com/shime/emacs-livedown

Last synced: 3 days ago
JSON representation

Emacs plugin for Livedown.

Awesome Lists containing this project

README

        

# livedown.el

Emacs plugin for [Livedown](https://github.com/shime/livedown).

![](https://twobucks.co/assets/emacs-livedown.gif)

## Installation

First make sure you have [node](http://nodejs.org/) with [npm](https://www.npmjs.org/) installed.

Then install `livedown` with

$ npm install -g livedown

Then install this plugin with

```shell
git clone https://github.com/shime/emacs-livedown.git ~/.emacs.d/emacs-livedown
cat <> ~/.emacs.d/init.el
(add-to-list 'load-path (expand-file-name "~/.emacs.d/emacs-livedown"))
(require 'livedown)
EOF
```

## Configuration

This plugin uses some configurable variables, with the following defaults

```elisp
(custom-set-variables
'(livedown-autostart nil) ; automatically open preview when opening markdown files
'(livedown-open t) ; automatically open the browser window
'(livedown-port 1337) ; port for livedown server
'(livedown-browser nil)) ; browser to use
```

Make sure to place them before the `require` line in your `init.el`.

You can also call the functions manually with

```elisp
M-x livedown-preview
M-x livedown-kill
```

Or for bonus points, define a keybinding with

```elisp
(global-set-key (kbd "C-M-m") 'livedown-preview)
```

## License

MIT