Re: [code] [textadept] How to setup textadept to compile ConTeXt on Windows10x64? / TA strange behaviour

From: Carl Sturtivant <sturtivant.att.gmail.com>
Date: Sat, 25 Feb 2017 14:36:23 -0600

OK, it's usual to not edit the textadept installation. Instead your
first run of textadept places a .textadept folder in your home
directory, something like C:\Users\cryoshock or whatever your windows
username is. In your .textadept folder is an init.lua.

I think the intent was you run an unmodified textadept installation, and
place the extra code in there. I don't know the mechanics, but at least
this way we know your added code is run at the right time on startup,
last perhaps.

Also, if you follow this discipline, you can update textadept starting
by deleting the old installation, and your modifications remain.

On 2/25/2017 2:30 PM, cryo shock wrote:
> yes.
> my init.lua sysdrive/users is empty. init.lua in the TA folder looks
> like this:
>
> package.path = table.concat({
> _USERHOME..'/?.lua',
> _USERHOME..'/modules/?.lua', _USERHOME..'/modules/?/init.lua',
> _HOME..'/modules/?.lua', _HOME..'/modules/?/init.lua',
> package.path
> }, ';');
> local so = not WIN32 and '/?.so' or '/?.dll'
> package.cpath = table.concat({
> _USERHOME..so, _USERHOME..'/modules'..so, _HOME..'/modules'..so,
> package.cpath
> }, ';')
> textadept = require('textadept')
> local user_init = _USERHOME..'/init.lua'
> if lfs.attributes(user_init) then dofile(user_init) end
> ui.set_theme('base16-greenscreen-dark', {font = 'Monospace', fontsize
> = 10})
> events.connect(events.KEYPRESS, function(code)
> ui.statusbar_text = code
> end)
> keys['\223'] = function() buffer:add_text('\\') end
>
> 2017-02-25 21:03 GMT+01:00 Carl Sturtivant <sturtivant.att.gmail.com
> <mailto:sturtivant.att.gmail.com>>:
>
> Is that where you put the KEYPRESS event code? I say that because
> we know that ran.
>
> On 2/25/2017 1:56 PM, cryo shock wrote:
>
> Yes I did. I also added the line to both, main directory as
> well as sysdrive/users.
>
>
>
> --
> You are subscribed to code.att.foicica.com <mailto:code.att.foicica.com>.
> To change subscription settings, send an e-mail to
> code+help.att.foicica.com <mailto:code%2Bhelp.att.foicica.com>.
> To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com
> <mailto:code%2Bunsubscribe.att.foicica.com>.
>
>

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sat 25 Feb 2017 - 15:36:23 EST

This archive was generated by hypermail 2.2.0 : Sun 26 Feb 2017 - 06:27:30 EST