Commit graph

14 commits

Author SHA1 Message Date
syl20bnr
fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00
syl20bnr
bfec254221 core: replace :additional-docs by an independent macro
- New macro `spacemacs|transient-state-format-hint`
Additional hints can be formatted outside of the transient state macro.
This is a better separation of concern from an API point of view
because those hint are coupled to with the usage of :dynamic-hint
keyword. The transient state macro only need to know the entry point
for such dynamic hints, effectively increasing the readability of
transient state definition.

To be able to decouple the formatting of additional hints, a new
private variable whose name is given by the function
`spacemacs//transient-state-props-var-name` has been introduced.
An alternative would have been the save the whole transient state macro
props but a variable allows the cherry-pick only the values we really
need.

- Remove commented code about old variable
`spacemacs-transient-state-title-face`

- Remove unused keyword :entry-binding since it is not used. Given
the number and diversity of transient states in Spacemacs currently it
is a safe guess to remove this keyword for now. We can reintroduce it
later if really needed.
2016-03-04 18:20:23 -05:00
syl20bnr
9c46bad357 core: add :hint-is-doc keyword to transient state 2016-03-04 17:26:11 -05:00
syl20bnr
613ccb0070 core: add :dynamic-hint keyword to transient state 2016-03-04 17:02:58 -05:00
justbur
b149f4e13a transient-state: new dotspacemacs variable to hide titles
dotspacemacs-show-transient-state-title
2016-01-31 23:50:10 -05:00
justbur
c40e49f1a1 transient-state: Add pink to color guide
Pink is for keys that do not exit hydras that run foreign keys.
2016-01-31 23:49:49 -05:00
justbur
afec0f2264 transient-state: Add :additional-docs option
Used to format additional docstrings and store the resulting string in a
variable.
2016-01-31 23:48:19 -05:00
justbur
a55e8dc6fa transient-state: Make title face match mode-line 2016-01-31 23:48:19 -05:00
justbur
c12f6b85c8 transient-state: Add .spacemacs var to hide color guide 2016-01-31 23:48:19 -05:00
justbur
c6b7eaca3d transient-state: Tweak formatting of doc
Make title formatting span length of message window, add space
between color guide and keys, and make italic.
2016-01-31 23:48:19 -05:00
syl20bnr
5b757eb090 core: remove corelv
Since hydra is now a bootstrap package.
2016-01-26 02:05:32 -05:00
justbur
a19710846e transient state: Add color guide to hints 2016-01-26 01:21:01 -05:00
justbur
35ad5f32ba core: Add defer-until-after-user-config
Add function that can be used to defer execution until after
dotspacemacs/user-config is run. If it has already been run the function
executes immediately.

Initially this is only used for deferring the definitions of
transient-states.
2016-01-26 01:21:01 -05:00
justbur
76cd590667 transient-state: Put code in new core file 2016-01-26 01:21:01 -05:00