Atom (简体中文)
Atom 是一个由 GitHub 开发的开源编辑器,采用 MIT 证书授权方式。主要是由 CoffeeScript 和 Javascript 编写,并使用 Node.js 作为运行时环境。超过 4,000 个插件和1,000 种主题使它具有很强的扩展性。它使用其内建的 apm 软件包管理器管理软件包和主题。
Contents
安装
以下软件包都可用于安装Atom:
- 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.
问题处理
环境变量设置未被使用
你可能会遇到一些因为软件包使用环境变量而引起的问题,像go-plus ($GOPATH not found
)。例如,Atom 打开你的文件管理器所引起的问题(这是有DBUS-spawned引起的,因此,他不会继承在 .bashrc
中定义的环境变量)。
你可以通过Systemd/User#Environment variables为DBUS-spawned进程创建可用的环境变量
关于这个问题的更过内容,请参考 Environment variables#Per user.
无法删除文件
Electron 程序默认使用 gvfs-trash
删除文件,不使用 GNOME 的用户可以使用 ELECTRON_TRASH
环境变量设置删除工具
例如要在 Plasma 中删除文件:
$ ELECTRON_TRASH=kioclient5 atom
目前 Electron 支持 kioclient5
, kioclient
, trash-cli
和 gvfs-trash
(默认). 更多信息请参考 Github 页面.
启动时黑屏
在某些显卡,例如 VirtualBox 客户系统中,Atom 不会在禁用硬件加速的显卡上渲染窗口,可以使用 --disable-gpu
启动选项修复此问题。或者在配置文件 .atom/config.cson
的 editor
段落,加入 useHardwareAcceleration: false
。
无拼写检查
请确保 hunspell 和需要的字典已经安装.