18 Star 39 Fork 1

mathmhb / Makefile

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
StartUp.lua 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
mathmhb 提交于 2023-01-18 21:45 . add Clean for Mac OS X
-- Windows requirement to immediately see all lua output.
io.stdout:setvbuf("no")
print('Loading StartUp.lua with '.._VERSION)
--lua >=5.2.x renamed functions:
unpack = table.unpack or unpack
math.mod = math.fmod or math.mod
string.gfind = string.gmatch or string.gfind
table.getn = table.getn or function(tbl) return #tbl end
getn = table.getn
os.exit= function() error("Catched os.exit from quitting SciTE.\n") end
exists= function(f) return os.rename(f,f) end
--add scite_lua dir to lua path
lua_path=props['ext.lua.directory']
print('ext.lua.directory='..lua_path)
if exists(lua_path) then
package.path = lua_path..'/?.lua'..';'..package.path
end
--add command in Tools menu
local function add_command(which,cmd,tbl)
print('command'..which..'='..cmd)
props['command'..which]=cmd
for k,v in pairs(tbl) do
props['command.'..k..which]=v
end
end
-- add Clean on Mac OS X for SciTE version 3.x
if (props['PLAT_GTK']=='1') and (os.execute('uname -a|grep Darwin')) then
add_command('.10.*','$(CMD_MAKER) clean',{name='Clean',subsystem='0',mode='',shortcut='Shift+F7'})
end
--uncomment below to invoke vim/emacs mode
require 'OnKey'
-- require 'vim'
-- require 'emacs'
save_OnKey=OnKey
--require 'extman'
其他
1
https://gitee.com/imbit_mathmhb/Makefile.git
git@gitee.com:imbit_mathmhb/Makefile.git
imbit_mathmhb
Makefile
Makefile
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891