简体   繁体   English

如何在emacs中退出MELPA?

[英]How do I exit MELPA in emacs?

I'm trying to learn Emacs, and I've installed MELPA as a package manager. 我正在尝试学习Emacs,并且已经将MELPA安装为软件包管理器。 The only problem is that the only way I know how to exit MELPA is by quitting Emacs entirely. 唯一的问题是,我知道如何退出MELPA的唯一方法是完全退出Emacs。 I'm sure there's a better way to do this. 我敢肯定有更好的方法可以做到这一点。 What is it? 它是什么?

Killing buffers with Cx k RET is generally good advice, but it is much easier to quit the package-list-packages screen by simply pressing q . 通常,使用Cx k RET杀死缓冲区是一个很好的建议,但是只需按q即可退出package-list-packages屏幕。

This also works to exit dired buffers, magit , and many other types of buffers that aren't text-oriented. 这也可以退出dired缓冲区, magit和许多其他非面向文本的缓冲区类型。

When you use package-list-packages , it opens a new buffer which displays the list of available packages. 当您使用package-list-packages ,它将打开一个新缓冲区,该缓冲区显示可用软件包的列表。 This is the same as any other buffer you open, and anything you could normally do to switch to a difference buffer is still available to you. 这与您打开的任何其他缓冲区相同,并且您通常可以执行任何切换到差异缓冲区的操作。

If you just want to close out the package list, the easiest way is with Cx k <RET> , which will close the current buffer, and take you back to your previous one. 如果只想关闭软件包列表,最简单的方法是使用Cx k <RET> ,它将关闭当前缓冲区,并带您回到上一个缓冲区。 As was pointed out by Chris , this isn't necessary in the package list, as you can simply use q . 正如Chris所指出 ,这在软件包列表中不是必需的,因为您可以简单地使用q

  • Cx Cf open file Cx Cf打开文件
  • Cx Cb open buffer list Cx Cb打开缓冲区列表
  • Cx b open buffer Cx b打开缓冲区
  • Mx execute command Mx执行命令

C - ctrl and M - alt C-Ctrl和M-alt

Also take a tour here 也可以在这里参观

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM