Skip to content

glynnforrest/mmm-jinja2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

mmm-jinja2 for Emacs

License GPL 3

Add Jinja2 tag support into other major modes with mmm-mode in GNU Emacs 24.

This mode has only been tested in GNU Emacs 24. It may not work with GNU Emacs 23 and below, or with other flavors of Emacs (e.g. XEmacs).

Installation

Manual

You'll need the following packages:

In your .emacs, load the .el:

(load "~/mmm-jinja2.el")

Then specify the extensions to use with mmm-jinja2 mode:

(add-to-list 'auto-mode-alist '("\\.jinja2\\'" . html-mode))
(mmm-add-mode-ext-class 'html-mode "\\.jinja2\\'" 'jinja2)

Automatic

From MELPA or MELPA Stable with M-x package-install RET mmm-jinja2.

Usage

Available MMM Mode Insertion Commands:

Key Inserts
C-c % { mako-{{-}}
C-c % # mako-comment
C-c % % mako-{%-%}

(Use C-c % h to show this help message when in mmm-jinja2 mode)

Support

Feel free to ask question or make suggestions in the issue tracker.

This package was originally authored by Ben Hayden; the current maintainer is Glynn Forrest.

Contribute

Contributors

License

mmm-jinja2 is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

mmm-jinja2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

See COPYING for the complete license.

About

Emacs MMM submode class for Jinja2 Templates

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published