emacs tutorial 学习笔记

   记录下emacs tutorial上的知识点,方便以后复习,emacs的配置可以参考github


  • view screenfuls

    C-v    Move forward one screenful
    M-v    Move backward one screenful
    C-l    Clear screen and redisplay all the text,moving the text around the cursor to the center of the screen


  •  summary of simple cursor-moving operations

    C-f    Move forward a character
    C-b    Move backward a character

    M-f    Move forward a word
    M-b    Move backward a word

    C-n    Move to next line
    C-p    Move to previous line

    C-a    Move to beginning of line
    C-e    Move to end of line

    M-a    Move back to beginning of sentence
    M-e    Move forward to end of sentence

    M-<    Move to the beginning of the whole text

    M->    Move to the end of the whole text


   C-u 8 C-f    Move forward eight characters

   C-u 8 C-v   Scroll the text up by 8 lines

   C-g              Stop a command which is taking too long to execute

   C-x 1          Delete all but One window(kill all other windows)

  • Inserting and Deleting

   C-u 8 *     Insert ********

   <DEL>     Delete the character just before the cursor

   C-d           Delete the next character after the cursor

   M-<DEL>  Kill the word immediately before the cursor

   M-d            Kill the next word after the cursor

   C-k             Kill from the cursor position to end of line, a single C-k kills the contents of the line, and a senond C-k kills the line itself

   M-k             Kill to the end of the current sentence

   C-<spc> C-w     Kill a segment of text

   C-u 2 C-k           Kills two lines and their newlines

   C-y             reinsert the last killed text

   M-y             Get back the previous text

  •   UNDO

   C-/        undo

   C-x u    undo, but is a little less convenient to type, a numeric argument to C-/, C-_,C-x u  acts as a repeat count

  • Files

   C-x C-f   Find a file

   C-x C-s  Save a file

  • Buffers

    C-x C-b  List buffers

    C-x b      Switch to buffer

    C-x s       Save some buffers

  •     Extending the command set

    C-x C-c  Quit  Emacs,  offers to save each changed file before it kill emacs

    C-x          Character extend. Followed by one character

    M-x          Named command extend. Followed by a long name

  • Auto save

    M-x recover-file <Return>     Recover the auto-save data

 

  • Mode line

    C-l C-l   Bring this line to the top of the screen

    C-h m   View documentation on current major mode

    M-x fundamental-mode

    M-x text-mode

    M-x auto-fill-mode
  • Searching

    C-s   Forward search

    C-r    Reverse search


   
































  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值