Re: [code] [textadept] custom key assigment in init.lua

From: tastyminerals <>
Date: Sun, 26 Jan 2014 19:59:58 +0300

Using " = textadept.editing.highlight_word" gives me the error
upon 'reset()'

/home/user/.textadept/init.lua:2: attempt to index global 'key' (a nil

My .textadept/ directory has only two files, init.lua and session.
My machine is Linux 3.10.27-1-MANJARO i686, for keyboard layout I use

setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,ru

If init.lua does not work, should I create keys.lua file in
/~/.textadept/modules/textadept//? Then how do I configure it? Hmm, and
why doesn't init.lua work?

On 01/26/2014 06:59 PM, Robert Gieseke wrote:
> Hi,
> Am 1/26/14, 4:47 PM, schrieb tastyminerals:
>> Hi everyone,
>> I am getting acquainted with textadept and can't assign a custom key to
>> highlight all the words in the document.
>> I want to reassign highlight all words function and use
>> ~/.textadept/init.lua file for it:
>> keys['ch'] = textadept.editing.highlight_word()
>> I also tried
>> = textadept.editing.highlight_word()
>> This does not activate the function unfortunately, so how do I do it?
> you need the function itself
> = textadept.editing.highlight_word
> not the function invocation.
>> I would also like to mention that including ctrl + shift OR ctrl + alt
>> combinations is a bad idea, since most ppl use them for keyboard layout.
>> So in my case, default highlight word (shift+ctrl+alt+h) does not work
>> at all.
> Which platform is this?
> Cheers,
> Robert

You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Sun 26 Jan 2014 - 11:59:58 EST

This archive was generated by hypermail 2.2.0 : Mon 27 Jan 2014 - 06:27:11 EST