From e540dc7f9ec419503ff63c3b489178c2444222d7 Mon Sep 17 00:00:00 2001 From: Jimmy Thrasher Date: Tue, 2 Dec 2014 11:15:53 -0500 Subject: [PATCH] Add mime-type check for Obj-C in case the user's file cmd supports it --- rc/c-family.kak | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rc/c-family.kak b/rc/c-family.kak index 45fd0333..25f84833 100644 --- a/rc/c-family.kak +++ b/rc/c-family.kak @@ -10,6 +10,10 @@ hook global BufCreate .*\.m %{ set buffer filetype objc } +hook global BufSetOption mimetype=text/x-objc %{ + set buffer filetype objc +} + def -hidden _c-family-indent-on-new-line %~ eval -draft -itersel %_ # preserve previous line indent