Atom (简体中文)
Atom 是一个由 GitHub 开发的开源编辑器,采用 MIT 证书授权方式。主要是由 CoffeeScript 和 Javascript 编写,并使用 Node.js 作为运行时环境。超过 4,000 个插件和1,000 种主题使它具有很强的扩展性。它使用其内建的 apm 软件包管理器管理软件包和主题。
安装
以下软件包都可用于安装Atom:
- atom
- atom-editorAUR[broken link: replaced by atom]
- atom-editor-binAUR
- atom-editor-gitAUR
- atom-editor-betaAUR
- atom-editor-beta-binAUR
- 非官方的 atom 源提供的 atom 软件包 .
插件
它的插件可以在Atom软件中或者使用apm命令完成安装,正确的apm命令语法是:
$ apm install package_name1 package_name2 package_name3 ...
一些包已经被预装到Atom中,另一些包没有,包括:
- build which enables Atom to compile source code.
- git-plus which allows one to manage git repositories from within Atom.
- language-archlinux which provides syntax-highlighting for PKGBUILDs (if installed along with the language-unix-shell package) along with support
为了在Atom中运行PKGBUILDs的测试和其他功能(包括makepkg, namcap, updpkgsums等): for running several tests and other actions on PKGBUILDs without a terminal (including makepkg, namcap, updpkgsums, etc.).
- markdown-writer which turns Atom into an efficient Markdown writer.
- script which enables Atom the ability to run scripts, based on file names.
- terminal-fusion which adds an embedded terminal window to Atom.
问题处理
环境变量设置(Environment variables not sourced)
你可能会遇到一些因为软件包使用环境变量而引起的问题,像go-plus ($GOPATH not found
)。例如,Atom打开你的文件管理器所引起的问题(这是有DBUS-spawned引起的,因此,他不会继承在 .bashrc
中定义的环境变量)。
你可以通过Systemd/User#Environment variables为DBUS-spawned进程创建可用的环境变量
关于这个问题的更过内容,请参考 Environment variables#Per user.