From e45164da4da40c11b17332d3991b43d5c425028c Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sun, 12 Mar 2017 19:20:33 -0700 Subject: [PATCH] Improve syntax highlighting suggestions in readme (#164) - Recognize Justfile as a justfile for vim filetypes snippet - Add vim modeline and emacs local variables block --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3faba88..21c9535 100644 --- a/README.md +++ b/README.md @@ -431,10 +431,19 @@ if exists("did_load_filetypes") endif augroup filetypedetect - au BufNewFile,BufRead justfile setf make + au BufNewFile,BufRead Justfile,justfile setf make augroup END ``` +Include the following in a `justfile` to enable syntax highlighting in vim and emacs: + +``` +# Local Variables: +# mode: makefile +# End: +# vim: set ft=make : +``` + Feel free to send me the commands necessary to get syntax hilighting working in your editor of choice so that I may include them here. ### justfile grammar