emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
clyfe 2021-02-28T09:16:47.012900Z

Is it possible to make an elisp function bound to left or right arrow key that: • if no active region, moves the point arg places in arrow direction (standard stuff) • works with shift translation (selects text when shift pressed, standard stuff) • if region is active, deselects text and places the cursor at the start or end of region (depending on arrow direction) The tricky part afaict is shift translation deselects before function runs, and I can't tell if text was selected on last point.

clyfe 2021-02-28T13:57:05.013500Z

Managed it with advices on handle-shift-selection & call-interactively & such

grazfather 2021-02-28T15:22:22.013900Z

Could you please share the mapping for curiosity’s sake?