How to select or highlight a block in Emacs?

后端 未结 9 834
一向
一向 2020-12-22 20:37

I want to select or highlight a block in emacs without using mouse but doing it from the keyboard like vim\'s visual mode. What is the easiest way to do this from a keyboard

9条回答
  •  清酒与你
    2020-12-22 21:24

    Use Control-Space to set a mark and move your cursor.

    The transient-mark-mode will highlight selections for you. M-x transient-mark-mode.

    You can setup Emacs to enable this mode by default using a customization. M-x customize-option RET transient-mark-mode.

提交回复
热议问题