Emacs Easy Jekyll screenshot

Emacs Easy Jekyll

Author Avatar Theme by Masasam
Updated: 17 Dec 2021
58 Stars

Emacs major mode for managing jekyll

Categories

Overview

The easy-jekyll-mode is an Emacs major mode that allows users to manage Jekyll blogs. It provides features such as managing multiple blogs, creating and editing articles in markdown or textile format, previewing blogs on the browser, and publishing to various deployment destinations.

Features

  • Manage Multiple Blogs: Users can easily switch between different Jekyll blogs using the < or > key.
  • Create and Edit Articles: Users can create new articles by entering a file name in the minibuffer. Automatic file generation is supported for both markdown and textile formats. Markdown-mode is used for writing the blog content.
  • Preview Blogs: The browser opens automatically, allowing users to preview the blog on their laptop or desktop. The preview command runs a single Jekyll process, which disappears after 300 seconds.
  • Publish to Deployment Destinations: Easy-jekyll supports different deployment destinations such as Amazon S3, Google Cloud Storage, GitHub Pages, and Firebase. Users can specify the deployment destination in their init.el file. Easy-jekyll automatically selects the appropriate deployment command based on the configuration.
  • Search Articles: Users can search for blog articles using counsel-ag or helm-ag, with a preference for counsel-ag by default.
  • Magit Integration: Users can deploy the Jekyll source to Netlify by simply pressing M and committing to GitHub.

Installation

To install the easy-jekyll-mode, follow these steps:

  1. Install the package from Melpa.
  2. Add the following code to your init.el file:
(require 'easy-jekyll)

;; Configure deployment destinations
(setq easy-jekyll-root "path/to/blog"
      easy-jekyll-amazon-s3-bucket-name "bucket-name"
      easy-jekyll-google-cloud-storage-bucket-name "bucket-name"
      easy-jekyll-firebase-project-id "project-id")

;; Optional: Configure search preferences
(setq easy-jekyll-use-helm-ag t)
  1. Restart Emacs or evaluate the code above.
  2. You can now start using easy-jekyll-mode to manage your Jekyll blogs.

Summary

Easy-jekyll-mode is a powerful Emacs major mode that simplifies the management of Jekyll blogs. It provides features for creating and editing articles, previewing blogs, and publishing to various deployment destinations. With easy-jekyll, users can efficiently manage multiple blogs and focus on creating content without worrying about the technical aspects of blog management and deployment.