fred-o / jekyll-modes Goto Github PK
View Code? Open in Web Editor NEWEmacs major modes (markdown and HTML) for authoring content in Jekyll
Emacs major modes (markdown and HTML) for authoring content in Jekyll
After polymode update the pacakge don't work anymore when you installit from Melpa.
First missing jekyll-markdown then this:
Debugger entered--Lisp error: (void-function pm-hbtchunkmode)
(pm-hbtchunkmode "yaml" :mode 'yaml-mode :head-reg "\\`---\n" :tail-reg "[^\\`]---\n")
eval((pm-hbtchunkmode "yaml" :mode 'yaml-mode :head-reg "\\`---\n" :tail-reg "[^\\`]---\n"))
```
pm is probably polymode function that was removed.
Polymode has been rewritten with many fixes and much simplified developer API.
I would be more than happy to provide a PR, but I would need a few comprehensive examples with liquid tags for the sake of indentation. Particularly the if-else blocks in html and markdown.
Would you be interested?
Hi there,
thank you for sharing your script.
I can't use it now because I'm getting this error:
Lisp error: (void-function markdown-mode)
markdown-mode()
pm-polymode([object pm-polymode-multi-auto "markdown-1" [object pm-polymode-multi-auto "markdown" unbound pm-host/markdown polymode-minor-mode " PM" (pm-exporter/pandoc) nil nil nil polymode-mode-map nil unbound nil nil nil (jekyll/yaml-frontmatter jekyll/liquid-expression jekyll/liquid-tag) jekyll/pygments nil] unbound jekyll-markdown-mode unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound])
apply(pm-polymode [object pm-polymode-multi-auto "markdown-1" [object pm-polymode-multi-auto "markdown" unbound pm-host/markdown polymode-minor-mode " PM" (pm-exporter/pandoc) nil nil nil polymode-mode-map nil unbound nil nil nil (jekyll/yaml-frontmatter jekyll/liquid-expression jekyll/liquid-tag) jekyll/pygments nil] unbound jekyll-markdown-mode unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound])
call-next-method()
pm-polymode-multi([object pm-polymode-multi-auto "markdown-1" [object pm-polymode-multi-auto "markdown" unbound pm-host/markdown polymode-minor-mode " PM" (pm-exporter/pandoc) nil nil nil polymode-mode-map nil unbound nil nil nil (jekyll/yaml-frontmatter jekyll/liquid-expression jekyll/liquid-tag) jekyll/pygments nil] unbound jekyll-markdown-mode unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound])
apply(pm-polymode-multi [object pm-polymode-multi-auto "markdown-1" [object pm-polymode-multi-auto "markdown" unbound pm-host/markdown polymode-minor-mode " PM" (pm-exporter/pandoc) nil nil nil polymode-mode-map nil unbound nil nil nil (jekyll/yaml-frontmatter jekyll/liquid-expression jekyll/liquid-tag) jekyll/pygments nil] unbound jekyll-markdown-mode unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound])
eieio-generic-call-primary-only(pm-initialize ([object pm-polymode-multi-auto "markdown-1" [object pm-polymode-multi-auto "markdown" unbound pm-host/markdown polymode-minor-mode " PM" (pm-exporter/pandoc) nil nil nil polymode-mode-map nil unbound nil nil nil (jekyll/yaml-frontmatter jekyll/liquid-expression jekyll/liquid-tag) jekyll/pygments nil] unbound jekyll-markdown-mode unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound]))
pm-initialize([object pm-polymode-multi-auto "markdown-1" [object pm-polymode-multi-auto "markdown" unbound pm-host/markdown polymode-minor-mode " PM" (pm-exporter/pandoc) nil nil nil polymode-mode-map nil unbound nil nil nil (jekyll/yaml-frontmatter jekyll/liquid-expression jekyll/liquid-tag) jekyll/pygments nil] unbound jekyll-markdown-mode unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound unbound])
jekyll-markdown-mode()
set-auto-mode-0(jekyll-markdown-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer 2015-08-18-create-scene.markdown> "~/workspace/webgl-with-threejs/_posts/2015-08-18-create-scene.markdown" nil nil "~/workspace/webgl-with-threejs/_posts/2015-08-18-create-scene.markdown" (6845682 16777218))
find-file-noselect("~/workspace/webgl-with-threejs/_posts/2015-08-18-create-scene.markdown" nil nil t)
find-file("~/workspace/webgl-with-threejs/_posts/2015-08-18-create-scene.markdown" t)
call-interactively(find-file nil nil)
command-execute(find-file)
I've installed the package from MELPA.
While compiling I got some warning about deprecated functions.
thank you,
pietro
I'm using this code:
{% highlight php startinline=true %}
{% endhighlight %}
So I don't need to specify the <?php
tag, but this make jekyll-modes not enable php-mode
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.