From 059a6dcd5a413847ec91617e9b2ac372fc39860f Mon Sep 17 00:00:00 2001 From: Navid Sassan Date: Wed, 22 Nov 2023 23:03:25 +0100 Subject: [PATCH] add modeline --- burn | 2 ++ client | 2 ++ control | 2 ++ de_store | 2 ++ energy_control | 2 ++ get | 1 + react | 2 ++ reactLamp | 2 ++ recv_file | 2 ++ redstone_toggle | 2 ++ send_file | 2 ++ startup | 2 ++ utils | 2 ++ vim | 2 ++ 14 files changed, 27 insertions(+) diff --git a/burn b/burn index 3b9b7d9..99c78f6 100644 --- a/burn +++ b/burn @@ -1,3 +1,5 @@ +-- vi: ft=lua + function select_next_item() local sel_pos = 0 turtle.select(sel_pos + 1) diff --git a/client b/client index 5453934..f4d390b 100644 --- a/client +++ b/client @@ -1,3 +1,5 @@ +-- vi: ft=lua + local hostname = "turtle" .. os.getComputerID() local sides = peripheral.getNames() diff --git a/control b/control index cd81c00..70d39f9 100644 --- a/control +++ b/control @@ -1,3 +1,5 @@ +-- vi: ft=lua + local sides = peripheral.getNames() for i = 1, #sides do if peripheral.getType(sides[i]) == "modem" then diff --git a/de_store b/de_store index 36c6c6c..1ee0c7a 100644 --- a/de_store +++ b/de_store @@ -1,3 +1,5 @@ +-- vi: ft=lua + local hostname = "de_store" .. os.getComputerID() function dump(o) diff --git a/energy_control b/energy_control index a1e38bb..5b40bf4 100644 --- a/energy_control +++ b/energy_control @@ -1,3 +1,5 @@ +-- vi: ft=lua + local hostname = "pocket_computer" .. os.getComputerID() redstone_toggle_id = 50 diff --git a/get b/get index e853ea3..3c6e9f5 100644 --- a/get +++ b/get @@ -1,3 +1,4 @@ +-- vi: ft=lua -- utility to download files from the git repo local function printUsage() diff --git a/react b/react index d81a9a3..e0fac6e 100644 --- a/react +++ b/react @@ -1,3 +1,5 @@ +-- vi: ft=lua + --import utils for lamp rednet stuffs require("git-scripts.utils") diff --git a/reactLamp b/reactLamp index f454b58..c1f9d37 100644 --- a/reactLamp +++ b/reactLamp @@ -1,3 +1,5 @@ +-- vi: ft=lua + dofile("git-scripts.utils") LAMP_SIDE = "bottom" diff --git a/recv_file b/recv_file index 7ac0f7e..24999ea 100644 --- a/recv_file +++ b/recv_file @@ -1,3 +1,5 @@ +-- vi: ft=lua + require("git-scripts.utils") modemSide = utils.getSideOf("modem") --get side the modem is on diff --git a/redstone_toggle b/redstone_toggle index b686032..6655347 100644 --- a/redstone_toggle +++ b/redstone_toggle @@ -1,3 +1,5 @@ +-- vi: ft=lua + local hostname = "redstone_toggle" .. os.getComputerID() function dump(o) diff --git a/send_file b/send_file index 06ff87f..77db8b3 100644 --- a/send_file +++ b/send_file @@ -1,3 +1,5 @@ +-- vi: ft=lua + require("git-scripts.utils") local function printUsage() diff --git a/startup b/startup index 90486be..6570c84 100644 --- a/startup +++ b/startup @@ -1,3 +1,5 @@ +-- vi: ft=lua + local script = "script" shell.run("rm", script) diff --git a/utils b/utils index 5741318..c138e28 100644 --- a/utils +++ b/utils @@ -1,3 +1,5 @@ +-- vi: ft=lua + --lua module "utils" for random utilities if utils then return end --avoid loading twice utils = {} diff --git a/vim b/vim index be9e203..ef24ef6 100644 --- a/vim +++ b/vim @@ -1,3 +1,5 @@ +-- vi: ft=lua + -- alias for edit local function printUsage()