Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/andorsk/hugo-doom-emacs-theme

hugo emacs theme with keyboard bindings
https://github.com/andorsk/hugo-doom-emacs-theme

doom-emacs emacs-theme evil hugo hugo-blog-theme hugo-theme markdown personal-site responsive vim

Last synced: about 1 month ago
JSON representation

hugo emacs theme with keyboard bindings

Awesome Lists containing this project

README

        

# Hugo Emacs Theme
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://choosealicense.com/licenses/mit/)

**Status**: Work in Progess. It works, but there's a lot of tweaking/improvements to do. Recommended to not use in production yet.

**Known Issues:** See [here](#issues) for known issues.

A hugo theme inspired by Doom Emacs. It contains a doom like theme for hugo and
binds some shortcuts to the browser, such as `?` will bring up a shortcut menu.

The goal of this theme is to be able to navigate most of the website via keyboard
bindings as well as through the standard mouse shortcuts.

![imgs/sample.gif](imgs/sample.gif)

### Demo

You can see my blog [here](https://andorsk.github.io/blog) using this theme.

### Installation

1. cd into your themes directory
2. git submodule add [email protected]:andorsk/hugo-doom-emacs-theme.git
3. change the theme in config.toml to hugo-doom-emacs-theme `theme = "hugo-doom-emacs-theme"`

### Design Decisions

- Allow someone to navigate entirely by keyboard. Always.
- Should feel free
- Non engineers should be able to use it as well.
- Personally and selfishly, I basically run my life on emacs at this point. I
wanted to visit my writing and notes on a blog that made it feel like I was
still in emacs, even when I wasn't.

### Keyboard Bindings

| Key | Action | Key | Action |
|-----|-------------|-----| ------------|
| b | Open Buffer | ? | Open Help |
| m | Go Home | p | Go To Posts |
| t | Go to Tags | k | Scroll Up |
| j | Scroll Down | g | Scroll to Top of Page |
| G | Scroll to Bottom of Page | Ctrl + d | Scoll Down Half a Page |
| Ctrl + u | Scoll Up Half a Page | Enter | Select |

### Features

This theme features a bunch of additional in-build support.

##### mermaid support

This:

```text
graph TD
A --> B
```

Converts to:

```mermaid
graph TD
A --> B
```

##### MathJax support

If you type in: \$a+b=3\$ you'll get a render of it with MathJax.

##### Custom Blocks

- blockquote
- mermaid
- definition
- theoreom

#### Landing Page

- **Params.art**: The ascii art on the landing page

#### Styling

- Check out main.scss and _variables.scss for styling._

### Issues

See the [here](https://github.com/andorsk/hugo-doom-emacs-theme/issues) for known issues.

### Reference

![imgs/sample.png](imgs/sample.png)

### Contributions

Feel free to send over a PR if you'd like to update this!