Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 959 Bytes

atom.md

File metadata and controls

35 lines (26 loc) · 959 Bytes

Atom configurations

A hackable text editor for the 21st Century


Hot key setup for λ

  1. Open init.coffe (File > Init Script...).
  2. Copy & paste the snippet:
atom.commands.add 'atom-text-editor',
  'custom:lambda-insert': ->
    atom.workspace.getActiveTextEditor()?.insertText('λ')
  1. Open keymap.cson (File -> Keymap...) and append:
'alt-l': 'custom:lambda-insert'

Now you can press alt + l to type λ

CSS highlighting in template literal

  1. Open settings (File > Settings...)
  2. Click to +Install
  3. Find package language-babel and install it.
  4. In the settings of the package find JavaScript Tagged Template Literal Grammar Extensions
  5. Paste this regexp: "(?:λ\.(?:[a-z|1-5])+|(?:λ\(\w+\)))":source.css.styled to the input.