Atom (text editor): Difference between revisions
Created page with "Atom" |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Atom | Atom | ||
==Getting Started== | |||
===Installation=== | |||
[https://flight-manual.atom.io/getting-started/sections/installing-atom/ Reference]<br> | |||
====Ubuntu==== | |||
<syntaxhighlight lang="bash"> | |||
wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add - | |||
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list' | |||
sudo apt-get update | |||
sudo apt install atom | |||
</syntaxhighlight> | |||
==Languages== | |||
===Latex=== | |||
<pre> | |||
apm install latex language-latex pdf-view | |||
</pre> | |||
* <code>latex</code> - for compiling latex (requires TeX Live on the system) | |||
* <code>language-latex</code> - for latex syntax highlighting | |||
* <code>pdf-view</code> - for viewing the compiled PDFs | |||
===Julia=== | |||
===JavaScript=== | |||
<pre> | |||
apm install linter linter-jshint | |||
</pre> | |||
==Keybindings== | |||
You can create custom keybindings by editing the <code>keymap.cson</code> file.<br> | |||
This can be found at <code>C:\Users\[username]\.atom\keymap.cson</code><br> | |||
{{hidden | My Keybindings | | |||
<pre> | |||
# Your keymap | |||
# | |||
# Atom keymaps work similarly to style sheets. Just as style sheets use | |||
# selectors to apply styles to elements, Atom keymaps use selectors to associate | |||
# keystrokes with events in specific contexts. Unlike style sheets however, | |||
# each selector can only be declared once. | |||
# | |||
# You can create a new keybinding in this file by typing "key" and then hitting | |||
# tab. | |||
# | |||
# Here's an example taken from Atom's built-in keymap: | |||
# | |||
# 'atom-text-editor': | |||
# 'enter': 'editor:newline' | |||
# | |||
# 'atom-workspace': | |||
# 'ctrl-shift-p': 'core:move-up' | |||
# 'ctrl-p': 'core:move-down' | |||
# | |||
# You can find more information about keymaps in these guides: | |||
# * http://flight-manual.atom.io/using-atom/sections/basic-customization/#customizing-keybindings | |||
# * http://flight-manual.atom.io/behind-atom/sections/keymaps-in-depth/ | |||
# | |||
# If you're having trouble with your keybindings not working, try the | |||
# Keybinding Resolver: `Cmd+.` on macOS and `Ctrl+.` on other platforms. See the | |||
# Debugging Guide for more information: | |||
# * http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-the-keybindings | |||
# | |||
# This file uses CoffeeScript Object Notation (CSON). | |||
# If you are unfamiliar with CSON, you can read more about it in the | |||
# Atom Flight Manual: | |||
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#configuring-with-cson | |||
'atom-text-editor': | |||
'ctrl-t': 'latex:build' | |||
'ctrl-alt-b': 'atom-beautify:beautify-editor' | |||
</pre> | |||
}} | |||
==Useful Packages== | |||
===atom-ternjs=== | |||
Provides documentation and autocomplete functionality for JavaScript (ES5+) |
Latest revision as of 08:13, 17 July 2021
Atom
Getting Started
Installation
Ubuntu
wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
sudo apt-get update
sudo apt install atom
Languages
Latex
apm install latex language-latex pdf-view
latex
- for compiling latex (requires TeX Live on the system)language-latex
- for latex syntax highlightingpdf-view
- for viewing the compiled PDFs
Julia
JavaScript
apm install linter linter-jshint
Keybindings
You can create custom keybindings by editing the keymap.cson
file.
This can be found at C:\Users\[username]\.atom\keymap.cson
My Keybindings
# Your keymap # # Atom keymaps work similarly to style sheets. Just as style sheets use # selectors to apply styles to elements, Atom keymaps use selectors to associate # keystrokes with events in specific contexts. Unlike style sheets however, # each selector can only be declared once. # # You can create a new keybinding in this file by typing "key" and then hitting # tab. # # Here's an example taken from Atom's built-in keymap: # # 'atom-text-editor': # 'enter': 'editor:newline' # # 'atom-workspace': # 'ctrl-shift-p': 'core:move-up' # 'ctrl-p': 'core:move-down' # # You can find more information about keymaps in these guides: # * http://flight-manual.atom.io/using-atom/sections/basic-customization/#customizing-keybindings # * http://flight-manual.atom.io/behind-atom/sections/keymaps-in-depth/ # # If you're having trouble with your keybindings not working, try the # Keybinding Resolver: `Cmd+.` on macOS and `Ctrl+.` on other platforms. See the # Debugging Guide for more information: # * http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-the-keybindings # # This file uses CoffeeScript Object Notation (CSON). # If you are unfamiliar with CSON, you can read more about it in the # Atom Flight Manual: # http://flight-manual.atom.io/using-atom/sections/basic-customization/#configuring-with-cson 'atom-text-editor': 'ctrl-t': 'latex:build' 'ctrl-alt-b': 'atom-beautify:beautify-editor'
Useful Packages
atom-ternjs
Provides documentation and autocomplete functionality for JavaScript (ES5+)