Create an empty Packages/User/Main.sublime-menu file
Copy your code/layout into it, no need to duplicate
The global files are read first, the user files last. User file overwrites.
I put a 2 columns, 1 Row Layout into Packages/User/Main.sublime-menu file, which looks this now (only this code is in my file. This is not an excerpt):
{
"id": "view",
"children": {
"id": "layout",
"children": {
"command": "set_layout",
"caption" : "2C - 1R",
"mnemonic": "J",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[0, 0, 1, 1], [1, 0, 2, 1],
[0, 1, 2, 2]
]
}
}]
}]}]
Btw the files are read instant, no need to reopen sublime text2.
I got my information on this board, different websites, the documentation, etc.
I have no idea what (PLAT).sublime-keymap does and i guess thats the basis/canonical file which is read before the “General/Default” file.
If you insert an already existing layout, it is overwritten (I did not test this). If you add a layout with a different name (like i did) it is added to the menu.
Hope this clears things a bit up.