Re: [code] Make additions to the CPP module from my _USERHOME directory

From: Mitchell <>
Date: Mon, 18 Mar 2013 11:37:41 -0400 (Eastern Daylight Time)

Hi Ryan,

On Mon, 18 Mar 2013, Ryan Pusztai wrote:

> Hi,
> I am trying to make TextAdept be my main editor for C++. I wanted to
> attempt to add a couple of cpp specific tools for generating makefiles and
> running them.
> I am having a tough time adding language specific key settings from my
> _USERHOME\init.lua file. The "keys.cpp = { ci = complete_cpp }" is failing
> to load with this error:
> ~/.textadept/cpp.lua:51: attempt to index field 'cpp' (a nil value)
> Is this because the cpp module that ships with TA does not get loaded till
> after my user specific configurations? If so, can I get around this?
> I feel like I can copy the entire cpp language module, but I would like to
> just add features to it and not worry about if it gets updates between
> releases of TA.

You can use a ~/.textadept/cpp/post_init.lua[1] which is run after the cpp
module is loaded. It was designed specifically for the situation you
described :)



You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Mon 18 Mar 2013 - 11:37:41 EDT

This archive was generated by hypermail 2.2.0 : Tue 19 Mar 2013 - 06:47:55 EDT