Re: Forcing tab-width to be 8 makes using Python source blocks very difficult

2024-03-16 Thread Rudi C
Thanks, I don't have any problems now, so we can consider this closed. On Sat, Mar 16, 2024 at 2:32 PM Ihor Radchenko wrote: > Rudi C writes: > > > ... runs `evil-shift-right`, which > > indents the selected region by the `evil-shift-width` amount. > > `evil-shift-width` is set based on

Re: Forcing tab-width to be 8 makes using Python source blocks very difficult

2024-03-16 Thread Ihor Radchenko
Rudi C writes: > ... runs `evil-shift-right`, which > indents the selected region by the `evil-shift-width` amount. > `evil-shift-width` is set based on `tab-width`. Are you sure? I am looking at https://github.com/emacs-evil/evil/blob/master/evil-vars.el#L175 and it appears that

Re: Forcing tab-width to be 8 makes using Python source blocks very difficult

2024-03-16 Thread Rudi C
`evil-org->` doesn't matter per se. It runs `evil-shift-right`, which indents the selected region by the `evil-shift-width` amount. `evil-shift-width` is set based on `tab-width`. I solved this specific problem by overriding `evil-shift-width` using a timer in an org-mode hook. The delay

Re: Forcing tab-width to be 8 makes using Python source blocks very difficult

2024-03-16 Thread Ihor Radchenko
Rudi C writes: > Recently, a breaking change has been introduced in Org mode that sets the > default tab-width to 8 spaces ( > https://list.orgmode.org/orgmode/8734y5d2gs.fsf@localhost/). This change > has made using Python source blocks in Org mode challenging, as operations > like `evil-org->`

Forcing tab-width to be 8 makes using Python source blocks very difficult

2024-03-15 Thread Rudi C
Recently, a breaking change has been introduced in Org mode that sets the default tab-width to 8 spaces ( https://list.orgmode.org/orgmode/8734y5d2gs.fsf@localhost/). This change has made using Python source blocks in Org mode challenging, as operations like `evil-org->` rely on `tab-width`, and