As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [shift-selection]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
3 answers

Which commands/functions/processes are run on keyboard input S-<right>?

Emacs help shown using C-h k S-<right> states only: <right> (translated from S-<right>) runs the command right-char (found in global-map), which is an interactive byte-compiled Lisp ...
Claudio's user avatar
  • 350
1 vote
2 answers

windmove doesn't recognize S-<up> and S-<down> on Macbook Terminal

GNU Emacs 27.2 in Mac OS terminal (11.4 Big Sur). Started with (windmove-default-keybindings) and found that S-<up> and S-<down> behaved just as <up> and <down>, as if the ...
PartialOrder's user avatar
1 vote
1 answer

shift selection not working for rebound M-{ backward-paragraph

I slightly simplified the keys for backward-paragraph and forward-paragraph: (global-unset-key (kbd "M-{")) ;; originally backward-paragraph (global-unset-key (kbd "M-}")) ;; originally forward-...
xdavidliu's user avatar
  • 123
0 votes
1 answer

How can I fix shift-select-mode with own syntax-table

So I have modified syntax table for moving with C-<left>. (defvar my-wacky-syntax-table (let ((table (make-syntax-table))) (modify-syntax-entry ?\( "w" table) (modify-...
Pfedj's user avatar
  • 308
1 vote
1 answer

Make region transient in elisp function

I'm trying to write a function that exits isearch leaving the current match selected "transiently", so that the mark is deactivated by any unshifted movement command. I've tried to modify this ...
Arch Stanton's user avatar
  • 1,515
1 vote
1 answer

Make C-S-up handle shift selection under Org-Mode

When shift-select-mode is on (Emacs' default), C-S-up in text mode selects the previous paragraph. This does not work under Org-Mode, where C-S-up gets translated into C-up, which is mapped to org-...
scaramouche's user avatar
  • 1,760
5 votes
3 answers

How to select (and highlight) non-consecutive blocks? [duplicate]

The title says it all. I'm looking for a C- or M- built-in way to select non-consecutive lines and blocks of text, like usual consecutive lines with Shift or C-SPC. I.e. I need a switch that turn ...
iantonuk's user avatar
  • 151
1 vote
1 answer

Region does not get deselected on move commands using `push-mark` from Elisp

By using shift-select-mode, I can select some region via holding down Shift + arrow keys. When I then stop pushing Shift and press other keys the region get deselected. But this is not the case when ...
sandric's user avatar
  • 1,221
3 votes
2 answers

How to move the cursor to the beginning/end of a shift-selected region by a left/right motion?

In most modern editors, after canceling a selection by a left/right motion, the cursor will be moved to the beginning/end of the previously-selected region correspondingly. Similarly, if we cancel a ...
AhLeung's user avatar
  • 1,063
4 votes
2 answers

Custom C-arrow cursor movement

I was not satisfied with the behavior of standard C-arrow and C-S-arrow, so I wrote this functions to replace standard ones. (setq separators-regexp "[\-'\"();:,.\\/?!@#%&*+=]") (defun forward-...
user avatar