nibrahim / Hyde

An Emacs mode to manage Jekyll blogs
http://nibrahim.net.in/2010/11/11/hyde_%3A_an_emacs_mode_for_jekyll_blogs.html
GNU General Public License v3.0
117 stars 28 forks source link

Find Hyde root automatically using vc-find-root. #27

Closed aaronbieber closed 9 years ago

aaronbieber commented 9 years ago

This patch makes the "home" argument to the "hyde" entry point function completely optional. If provided, it uses that argument's value, if not provided, it uses the built-in "vc-find-root" to attempt to find the Jekyll root by looking for "_config.yml," which all Jekyll sites have. If it fails to find that file, it then prompts the user for a directory.

I also modified the prompt text from "Blog : " to "Jekyll root: ", but of course feel free to change it back; the colon spacing in this patch is consistent with other Emacs packages and Jekyll sites are not necessarily blogs.