Timeline for How to define global key binding for `C-c >` and `C-c <` using `defhydra`
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 20, 2021 at 0:29 | history | edited | Drew | CC BY-SA 4.0 |
added 2 characters in body; edited title
|
Aug 13, 2021 at 10:06 | comment | added | dalanicolai | 'indent-rigidly` only indents when some region is active. Furthermore, it behaves weird when trying to modify the command. So in the end, I guess you are using the best (most practical) method already. | |
Aug 13, 2021 at 8:03 | comment | added | alper | Hm what change should I make to work better? | |
Aug 13, 2021 at 7:56 | comment | added | dalanicolai |
I just noticed that the transient provided by indent-rigidly , provides indent-rigidly-right-to-tab-stop (and left ) under capital L/H , (so probably it is a little redundant to mention that you could use the transient package (instead of hydra) if you would like a way to set the offset interactively via the transient).
|
|
Aug 13, 2021 at 7:41 | comment | added | dalanicolai |
A lower level command (and the one that python-indent-shift-right/left is using) is indent-rigidly , which already provides a transient when called interactively. There is also indent-rigidly-right-to-tab-stop (and left ), which might be a better command to use if you would like to have different tab offset 's (besides its name making more sense when using this globally).
|
|
S Aug 12, 2021 at 21:56 | history | bounty ended | alper | ||
S Aug 12, 2021 at 21:56 | history | notice removed | alper | ||
Aug 12, 2021 at 21:56 | vote | accept | alper | ||
Aug 11, 2021 at 14:07 | answer | added | Tyler | timeline score: 1 | |
Aug 11, 2021 at 11:45 | history | edited | alper | CC BY-SA 4.0 |
added 77 characters in body
|
Aug 11, 2021 at 11:35 | history | edited | alper | CC BY-SA 4.0 |
added 238 characters in body
|
S Aug 11, 2021 at 11:28 | history | bounty started | alper | ||
S Aug 11, 2021 at 11:28 | history | notice added | alper | Authoritative reference needed | |
Jul 4, 2021 at 12:23 | history | asked | alper | CC BY-SA 4.0 |