Emacs: what is the shortcut key to clear buffer?

后端 未结 7 1897
别跟我提以往
别跟我提以往 2021-01-30 12:45

Like, Control-A (select all) followed by delete?

7条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-30 13:01

    Old folks might like to call it hk rather than clear-buffer-permanently, and assign it to the nostalgic key sequence like so:

    (define-key esc-map "\^[hk" 'hk)
    

    That's the pre-Gnu TECO EMACS command to clear the buffer (ESC ESC wHole Kill).

提交回复
热议问题