Giter Club home page Giter Club logo

emacs's Issues

Emacs基础教程

命令行

  1. 首先使用Alt + X打开命令行然后输入命令比如^help
  2. 使用C+g退出命令行

窗口,

编译窗口中你可以使用, 增,删,改,查, 移动

  1. 使用这个C+x 然后使用C+c 就会退出整个Emacs

  2. 使用C x, k可以将当前文件窗口进行删除, 退出当前文件窗口

  3. 在窗口中上下移动, 使用ctrl+f向右移动, 使用ctrl+p上移动, 使用Ctrl+n向下面移动

  4. 我们可以将上面的ctrl键替换成这个alt键, 这样你就会变成以词语为单位的移动

  5. 如果使用C+a或者C+e那么就是以句子为单位进行移动

  6. 命令重复 C+u+数字, 在输入一个命令之前, 表示重复使用这个数字多少次, 于是这个东西就可以配合之前的命令一起使用, 这样你可以实现移动2个单词,

进行分屏操作

输入 C-h k C-f 观察当一个新的窗口出现时当前窗口
输入C-X 1关闭文档窗格

插入与删除

插入直接在文本框中输入就可以了, 删除也仅仅使用delete就可以了

  1. delete删除光标前面的一个字符
  2. 删除光标后面的一个字符
  3. M-<DEL> 删除光标前面一个词语
  4. M-d 移除光标后的一个词
  5. C-k 移除从光标到行尾间的字符
  6. M-K 移除从光标到句尾间的字符

使用这个C+space键,, 可以选中一段文字, 但是这一点会出现一点问题

使用C+y找回之前删除的命令, 这个地方叫做“yinking”

使用撤销命令

如果你修改一段文字, 觉得改的不好, 可以使用C-/进行撤销
通常C-/会消除一个命令所造成的所有改变 如果你在一行中连续多次使用C-/
你会把以前的命令也依次撤销。

使用Ctrl _ 也可以达到相同的效果

但是有两个例外

  1. 没有改变文字的命令不算,包括光标移动命令和滚动命令
  2. 从键盘输入的字符以组为单位---->每组最多20个字符一一来处理

文件

使用C+x C+F命令来寻找文件

使用 C+x C-s 来保存这个文件

缓冲区

你可以使用上面的C+X C+F打开第二个文件, 但是第一个文件仍然在Emacs中, 要切回第一个文件你可以再次使用一下C+X C+F

可以使用C-X 1消除这个缓冲区
使用 C+X B使用这个命令打开文件缓冲区域

可以使用,M-x 进行打开命令行

使用那个Ctrl+XC+Z 这个命令来打开命令行终端

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.