add modeline

This commit is contained in:
Navid Sassan 2023-11-22 23:03:25 +01:00
parent 8b086b00fe
commit 059a6dcd5a
14 changed files with 27 additions and 0 deletions

2
burn
View File

@ -1,3 +1,5 @@
-- vi: ft=lua
function select_next_item()
local sel_pos = 0
turtle.select(sel_pos + 1)

2
client
View File

@ -1,3 +1,5 @@
-- vi: ft=lua
local hostname = "turtle" .. os.getComputerID()
local sides = peripheral.getNames()

View File

@ -1,3 +1,5 @@
-- vi: ft=lua
local sides = peripheral.getNames()
for i = 1, #sides do
if peripheral.getType(sides[i]) == "modem" then

View File

@ -1,3 +1,5 @@
-- vi: ft=lua
local hostname = "de_store" .. os.getComputerID()
function dump(o)

View File

@ -1,3 +1,5 @@
-- vi: ft=lua
local hostname = "pocket_computer" .. os.getComputerID()
redstone_toggle_id = 50

1
get
View File

@ -1,3 +1,4 @@
-- vi: ft=lua
-- utility to download files from the git repo
local function printUsage()

2
react
View File

@ -1,3 +1,5 @@
-- vi: ft=lua
--import utils for lamp rednet stuffs
require("git-scripts.utils")

View File

@ -1,3 +1,5 @@
-- vi: ft=lua
dofile("git-scripts.utils")
LAMP_SIDE = "bottom"

View File

@ -1,3 +1,5 @@
-- vi: ft=lua
require("git-scripts.utils")
modemSide = utils.getSideOf("modem") --get side the modem is on

View File

@ -1,3 +1,5 @@
-- vi: ft=lua
local hostname = "redstone_toggle" .. os.getComputerID()
function dump(o)

View File

@ -1,3 +1,5 @@
-- vi: ft=lua
require("git-scripts.utils")
local function printUsage()

View File

@ -1,3 +1,5 @@
-- vi: ft=lua
local script = "script"
shell.run("rm", script)

2
utils
View File

@ -1,3 +1,5 @@
-- vi: ft=lua
--lua module "utils" for random utilities
if utils then return end --avoid loading twice
utils = {}

2
vim
View File

@ -1,3 +1,5 @@
-- vi: ft=lua
-- alias for edit
local function printUsage()