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

From: Robert Gieseke <>
Date: Sun, 26 Jan 2014 16:59:09 +0100


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?


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 - 10:59:09 EST

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