Eivind Fonn
03a8f6733f
Check toggle condition in status function
2017-05-24 13:05:17 +02:00
syl20bnr
fb27ede558
Bump year in copyright headers
...
Happy New Year 2017!
2017-01-05 23:08:17 -05:00
bmag
8d0b0354ce
Toggles: print message only in interactive usage
2016-06-26 13:25:14 -04:00
Eivind Fonn
845c42d252
core: add predicate function for toggles
...
Also use output in Spacemacs help sources
2016-05-31 22:33:44 -04:00
Eivind Fonn
62fc64f745
core: special toggle API for minor modes
2016-05-31 22:33:44 -04:00
Curtis Mackie
c9e866443c
Prevent warnings when toggles are turned on
...
The edited sexp should not be quoted, it should be evaluated.
Removing the quoting allows it to work as intended.
2016-05-06 10:37:39 -05:00
Eivind Fonn
78f11f4493
Break long line in core-toggle.el
2016-05-06 13:53:42 +02:00
Daniel Luna
76610294a7
long-lines' toggle now accepts prefix arguments.
...
This commit introduces two new options to add-toggle:
:prefix, a symbol that is bound to the raw prefix argument (as
in `(interactive "P") forms).
:on-message, an expression overriding the default 'on' toggle
message (useful to document a toggle's argument).
These new options are applied to long-lines' toggle, so we can choose
how many lines to toggle it on via a raw prefix argument.
2016-05-06 13:53:41 +02:00
syl20bnr
046d86800c
Clean copyrights and update for year 2016
2016-01-11 21:42:17 -05:00
Eivind Fonn
b981bf5739
Don't produce on/off toggles if status is nil
...
They don't make sense in this context, and will produce unexpected
results.
2015-08-26 22:27:09 -04:00
syl20bnr
b568f0b3ea
core: tweak a bit add-toggle macro
...
Add message in the echo area
Slightly improve the doc string
2015-07-31 23:55:24 -04:00
Eivind Fonn
c9ea837130
Add on and off functions to toggles
...
Fixes #2485
2015-07-31 23:47:54 -04:00
Eivind Fonn
0f979d3cea
Better indentation for add-toggle
2015-07-27 12:09:27 -04:00
syl20bnr
bf2635e372
Generalize the bind properties for toggles and micro-states
2015-02-23 23:28:51 -05:00
syl20bnr
d6f4650105
Remove plural form for toggle and micro-state files
2015-02-08 12:19:34 -05:00