emacs python_Emacs –最好的python编辑器?

本文介绍了Emacs作为Python开发环境的优势,包括其简单而强大的配置、丰富的软件包管理和主题设置。通过安装和配置,我们可以将Emacs转变为一个完整的Python IDE,特别是通过Elpy扩展,提供了自动缩进、语法高亮、自动完成和语法检查等功能。此外,Emacs还支持与IPython和Jupyter的集成,以及Git集成(Magit)和其他多种语言的模式,使其成为全栈开发者的理想选择。
摘要由CSDN通过智能技术生成

emacs python

Thus far, in our series of posts on Python development environments we’ve looked at Sublime Text and VIM:

到目前为止,在有关Python开发环境的系列文章中,我们研究了Sublime Text和VIM:

In this post we’ll present another powerful editor for Python development – Emacs. While it’s an indisputable fact that Emacs is the best editor, we’ll (try to) keep an open mind and present Emacs objectively, from a fresh installation to a complete Python IDE so that you can make an informed decision when choosing your go-to Python IDE.

在本文中,我们将介绍另一个用于Python开发的强大编辑器-Emacs虽然Emacs是最好的编辑器,这是不争的事实,但我们将(尝试)保持开放的态度,客观地展示Emacs,从全新安装到完整的Python IDE,以便您在选择Go-到Python IDE。

emacs and python logos

This is a guest blog post by Kyle Purdon​, an Application Engineer at Bitly in Denver.

这是由Denly in Denver的应用工程师Kyle Purdon 撰写的客座博客文章。

安装和基础 (Installation and Basics)

安装 (Installation)

Installation of Emacs is a topic that does not need to be covered in yet another blog post. This Guide, provided by ErgoEmacs, will get you up and running with a basic Emacs installation on Linux, Mac, or Windows. Once installed, start the application and you will be greeted with the default configured Emacs:

Emacs的安装是一个主题,无需在另一篇博客文章中介绍。 由ErgoEmacs提供的本指南将指导您在Linux,Mac或Windows上进行基本的Emacs安装并使其运行。 安装后,启动应用程序,您将看到默认配置的Emacs:

emacs fresh launch

基本的Emacs (Basic Emacs)

Another topic that does not need to be covered again is the basics of using Emacs. The easiest way to learn Emacs is to follow the built-in tutorial. The topics covered in this post do not require that you know how to use Emacs yet; instead, each topic highlights what you can do after learning the basics.

无需再次讨论的另一个主题是使用Emacs的基础知识。 学习Emacs的最简单方法是遵循内置教程。 本文中涉及的主题并不要求您知道如何使用Emacs。 相反,每个主题都强调您在学习基础后可以做什么。

To enter the tutorial, use your arrow keys to position the cursor over the words “Emacs Tutorial” and press Enter. You will then be greeted with the following passage:

要进入教程,请使用箭头键将光标置于“ Emacs Tutorial”字样上,然后按Enter。 然后,您会收到以下段落:

1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9

So, key entries/commands like C-x C-s (which is used to save) will be shown throughout the remainder of the post. This command indicates that the CONTROL and X key are pressed at the same time, and then the CONTROL and S key. This is the basic form of interacting with Emacs. Please follow the built-in tutorial as well as the Guided Tour of Emacs to learn more.

因此,诸如Cx Cs类的关键条目/命令(用于保存)将在整个文章的其余部分中显示。 该命令表示同时按下CONTROL和X键,然后按下CONTROL和S键。 这是与Emacs进行交互的基本形式。 请遵循内置教程以及Emacs导览以了解更多信息。

配置和软件包 (Configuration and Packages)

One of the great benefits of Emacs is the simplicity and power of configuration. The core of Emacs configuration is the Initialization File, init.el.

Emacs的一大优点是配置的简单性和强大功能。 Emacs配置的核心是初始化文件 init.el

In a UNIX environment this file should be placed in $HOME/.emacs.d/init.el:

在UNIX环境中,此文件应放在$ HOME / .emacs.d / init.el中:

1
1

Meanwhile, in Windows, if the HOME environment variable is not set, this file should reside in C:/.emacs.d/init.el. See GNU Emacs FAQ for MS Windows > Where do I put my init file? for

  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值