From cfd3e9b03af05ddc7f94e3b41f3a919736065b5c Mon Sep 17 00:00:00 2001 From: fundon Date: Sat, 7 Feb 2015 15:32:12 +0800 Subject: [PATCH] doc: Quick Personal Hacks --- Readme.md | 1 + docs/Quick-Personal-Hacks.md | 45 ++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 docs/Quick-Personal-Hacks.md diff --git a/Readme.md b/Readme.md index 0698241c..58dfe609 100644 --- a/Readme.md +++ b/Readme.md @@ -88,6 +88,7 @@ When the `displayPluginsControls` setting is toggled on, plugins activation can * [Minimap API Documentation](http://abe33.github.io/atom-minimap/) * [How to create a minimap plugin?](http://abe33.github.io/atom-minimap/docs/Plugins.md.html) * [Minimap's Decorations API](http://abe33.github.io/atom-minimap/docs/Decorations.md.html) +* [Quick Personal Hacks](http://abe33.github.io/atom-minimap/docs/Quick-Personal-Hacks.md.html) ### Contributors diff --git a/docs/Quick-Personal-Hacks.md b/docs/Quick-Personal-Hacks.md new file mode 100644 index 00000000..f69656c4 --- /dev/null +++ b/docs/Quick-Personal-Hacks.md @@ -0,0 +1,45 @@ +# Quick Personal Hacks + +### keymap.cson + +You can open this file in an editor from the Atom > Open Your Keymap menu. + +```cson +'atom-workspace': + 'cmd-m': 'minimap:toggle' + 'ctrl-alt-cmd-m': 'minimap:generate-plugin' +``` + + +### styles.less + +You can open this file in an editor from the Atom > Open Your Stylesheet menu. + +#### Hiding the vertical-scrollbar + +```css +atom-text-editor .vertical-scrollbar, +atom-text-editor::shadow .vertical-scrollbar { + opacity: 0; + width: 0; +} +``` + +#### Changing the background of the Minimap + +```css +atom-text-editor::shadow atom-text-editor-minimap, +atom-text-editor atom-text-editor-minimap { + background: rgba(255,255,255, 0.1); +} +``` + +#### Changing the background of the Minima's `visible-area` + +```css +atom-text-editor::shadow atom-text-editor-minimap::shadow .minimap-visible-area, +atom-text-editor atom-text-editor-minimap::shadow .minimap-visible-area { + background-color: green; + opacity: .5; +} +```