The officially official Devuan Forum!

You are not logged in.

#1 2021-12-20 14:02:41

Altoid
Member
Registered: 2017-05-07
Posts: 1,415  

[SOLVED] jED, line numbers and user

Hello:

Although I have yet to master it, jED is my favourite editor.
Must be my many years under the shadow of MS editors.  8^/

One issue I solved long ago was the line numbering which (for some strange reason) is not set up by default.
Or an option to be quickly configured in a drop down menu.

You just generate a .jedrc file in your /home/user folder with this content:

LINENUMBERS = 2;

public define global_mode_hook (hook_name)
{
   
       set_line_number_mode (1);
}

See:  https://travelingfrontiers.wordpress.co … ed-editor/

The problem with this is that it is set up on a user basis and I'd like for this to be the default system-wide setting.

This came up while needing jED with line numbers while working on a VM without sudo.
I had to su or su - and line numbers were not available.

Any idea on how to get that done?

Thanks in advance,

A.

Offline

#2 2021-12-20 14:15:15

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] jED, line numbers and user

man jed wrote:

/etc/jed.d/*.sl
        The system wide configuration files (this is a special Debian feature).


Brianna Ghey — Rest In Power

Offline

#3 2021-12-20 16:49:06

Altoid
Member
Registered: 2017-05-07
Posts: 1,415  

Re: [SOLVED] jED, line numbers and user

Hello:

Head_on_a_Stick wrote:

/etc/jed.d/*.sl
The system wide configuration files (this is a special Debian feature).

Yes, that did it.
Thank you very much.  8^)

Edit:
Only problem is that if you configure for line numbers, scraping the content (copy to paste) will do so with both the content and the line numbers.
I think (?) most editors behave in the same manner.

Best,

A.

Last edited by Altoid (2021-12-20 17:48:20)

Offline

Board footer