Skip to content

Instantly share code, notes, and snippets.

@abovethewater
Last active October 7, 2015 14:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save abovethewater/9505609 to your computer and use it in GitHub Desktop.
Save abovethewater/9505609 to your computer and use it in GitHub Desktop.
Enabling bracket matching without auto closing brackets in atom
BracketMatcherView = require '/Applications/Atom.app/Contents/Resources/app/node_modules/bracket-matcher/lib/bracket-matcher-view.js'
atom.workspaceView.eachEditorView (editorView) =>
if editorView.attached and editorView.getPane()?
new BracketMatcherView(editorView)
'.editor':
'ctrl-m': 'bracket-matcher:go-to-matching-bracket'
.bracket-matcher {
border-bottom: 1px dotted lime;
position: absolute;
}
@abovethewater
Copy link
Author

Disable bracket-matcher in Atom->Preferences.

Update styles.less to manually add the CSS.

Update init.coffee to manually load the BracketMatcherView.

Add to the keymap to retain the matching bracket selection.

@monprin
Copy link

monprin commented Oct 7, 2015

FYI if you go to the bracket-matcher package, there are now settings and you can just uncheck the auto-complete brackets and quotes boxes, they listened!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment