create mappings conditionally and buffer-local for ruby files only