jed-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: how to avoid tab in pythonmode


On 28.06.04, Joachim Schmitz wrote:
> I am using xjed for all my python editing. I have my default indentlevel 
> set to 4.
> 
> xjed inserts a tab char if I indent twice by 4 spaces. This is confusing 
> if someelse uses this python source, with an python-ide like eric3.
> Any idea, howto avoid this ?

Have a look at the help for TAB and untab. Use e.g. with

define python_mode_hook ()
{
   # convert existing TABs to spaces
   untab();
   # tabs are never used to produce whitespace.
   TAB = 0;
   
   # continue with python customization, e.g.
   
   # comments with comment.sl
   set_comment_info ("python" , "# "   , ""    , 2|4);
   # for use of list_routines with python ...
   custom_variable("python_list_routines_regexp", [%"^import[ \t]",
						   %"^from[ \t]",
						   "^class[ \t]",
						   "^def[ \t]"]);
   # my private packages					   
   putenv("PYTHONPATH=/home/milde/.python/packages");
   # map äöü to []{}\
   set_programming_keys();
}

Günter

-- 
G.Milde at web.de

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]