Skip to content

javaguirre/ghost-blog-emacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ghost blog package for Emacs

Build Status

Requirement

The package uses markdown-mode for highlighting.

Installation

M-x package-install ghost-blog

Usage

Configuration

You need to set up this variables for the package to work.

There is not Oauth for now, you need to get a Bearer token.

(setq ghost-blog-url "https://javaguirre.net/ghost/api/v0.1")
(setq ghost-blog-bearer-token "Bearer my bearer")

Commands

Show post list

Shows a clickable list of the last posts of your blog.

(ghost-blog-get-posts)

Create new post template

It will create a new buffer with a default post template.

(ghost-blog-new-post)

Create post

It will create a post based on the information in the current buffer.

(ghost-blog-save-new-post)

Update a post

After clicking a post from the post list and doing some changes in the buffer, you could call this command to update the current post.

(ghost-blog-update-post)

Run unittests

We use ERT to run the unittests.

In the root of the project.

emacs -batch -l ert -l ghost-blog.el -l tests/ert.el -f ert-run-tests-batch-and-exit

or

make test

About

Ghost mode for Emacs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published