You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
; `proton.lib.mode/package-mode-name` used by convention since we auto generate
158
+
; mode name for packages.
159
+
```
160
+
161
+
Proton handles package state and execute `init-package` hook on package activation and
162
+
also when package disalbed will take care to remove associated __mode__ and __mode keybindings__.
163
+
164
+
For our example, when we press <kbd>SPC m L j</kbd> __linter-jshint__ will be activated
165
+
and __linter-eslint__ will be disabled. `init-package [:lang/javascript :linter-jshint]`
166
+
will be executed and __linter-jshint__ mode activated. In the same time __linter-eslint__
167
+
mode and associated key bindings will be removed.
168
+
169
+
__NOTE:__`(defmethod init-package [:layer-name :package-name])` is recommended
170
+
to define settings and key bindings associated with __package__ inside your layer.
171
+
90
172
#### keybindings
91
173
92
174
for proton to "see" your keybindings, you'll have to implement the multimethod `get-keybindings`. In the case of the git layer, this could look like this:
0 commit comments