Commit graph

59 commits

Author SHA1 Message Date
Lucius Hu
bc27203615
Removed legacy codes for emacs-version < 25.1 (#14497) 2021-04-28 05:04:53 +00:00
syl20bnr
97cd83e169 Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
syl20bnr
d55a9e2e67 Update header for year 2021 2021-03-25 22:59:32 -04:00
Robert O'Connor
82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
John Eismeier
5e3c96562a Propose a couple of spelling corrections 2018-08-02 00:20:06 +03:00
Benjamin Reynolds
594fdc8f05 Rename spacemacs/mplist-get functions to be more descriptive
* spacemacs/mplist-get -> spacemacs/mplist-get-values
* spacemacs/plist-get -> spacemacs/mplist-get-value
* refactor spacemacs/mplist-get-value to be defined in terms of mplist-get-values

Ref #10803 See [comment]

[comment]: https://github.com/syl20bnr/spacemacs/pull/10803#issuecomment-395292606
2018-06-14 00:15:49 -04:00
syl20bnr
326965d4ce Happy New Year 2018! 2018-01-04 02:00:25 -05:00
syl20bnr
fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00
syl20bnr
703f78c2b8 Cleanup pass on file spacemacs-base/funcs.el
- Apply `/` and `//` rules (double / is for private functions)
- Add missing `spacemacs/` prefixes
- Move functions used outside of spacemacs-base layer to
  core/core-funcs.el
- Remove unused functions

Commit originally intented to only rename linum-update-window-scale-fix
to spacemacs/linum-update-window-scale-fix :-)
2016-10-09 13:14:41 -04:00
Eivind Fonn
8e87132ba7 Fix possibly calling bad code after theme change 2016-07-25 14:00:02 +09:00
Damon Wang
2b0787f5eb Fixes display of per-binding docs in micro-state
Previous behavior, if a micro-state binding had :doc not nil, was an error
  Wrong type argument: stringp, 1

Detailed reproduction:
cat > /tmp/test.el <<EOF
(spacemacs|define-micro-state test
  :doc "[a] a [b] b [q] quit"
  :bindings
  ("a" nil :doc "a")
  ("b" nil :doc "b")
  ("q" nil :doc "quit" :exit t))

(spacemacs/test-micro-state)
EOF
emacs --load /tmp/test.el

Type a, b, or q and see the error in the echo buffer.
2016-07-05 00:23:16 -04:00
Levin Du
330f852752 core: update doc after auto executing in micro state.
This is useful if :doc is a function to return the state which may be
modified by :execute-binding-on-enter.
2016-01-31 23:04:47 -05:00
syl20bnr
5b757eb090 core: remove corelv
Since hydra is now a bootstrap package.
2016-01-26 02:05:32 -05:00
justbur
76cd590667 transient-state: Put code in new core file 2016-01-26 01:21:01 -05:00
justbur
f3e68b95a3 transient-state: Defer declaration of transient states 2016-01-26 01:21:00 -05:00
justbur
bbcac824ef transient-state: Add/remove bindings with variables
spacemacs-STATE-transient-state-remove-bindings is a list of keys whose
associated bindings should be removed for a transient state, when this
variable is defined.

spacemacs-STATE-transient-state-add-bindings is a list of bindings
suitable for a hydra whose associated bindings should be added to a
transient state, when this variable is defined.
2016-01-26 01:21:00 -05:00
justbur
e97af03ff7 Call new micro-state a transient state 2016-01-26 01:21:00 -05:00
justbur
154cfeea19 micro-state: Add :title option 2016-01-26 01:21:00 -05:00
justbur
da645c627e micro-state: Add add-micro-state-bindings
Macro that allows additional bindings to be specified for a micro-state
before that micro-state is declared.
2016-01-26 01:21:00 -05:00
justbur
dbd9725c39 spacemacs(-base): Translate micro-states to use new macro
1. spacemacs: scroll
2. spacemacs-base: paste
3. spacemacs-base: macrostep
4. spacemacs-base: transparency
5. spacemacs-base: scale-font
6. spacemacs-base: wind-manip
7. spacemacs-base: buffer
8. spacemacs: symbol-highlight
9. spacemacs: move-text
10. spacemacs: zoom-frm
11. spacemacs: evil-numbers
2016-01-26 01:20:59 -05:00
justbur
13c41947b1 micro-state: Define wrapper for defhydra
Try to use as many of the old keywords from spacemacs|define-micro-state
as possible in the new macr spacemacs|define-micro-state-2 (the 2 is
just to use for the transition period)
2016-01-26 01:20:59 -05:00
syl20bnr
046d86800c Clean copyrights and update for year 2016 2016-01-11 21:42:17 -05:00
justbur
ee6a486d4c core: Add new set-key functions to core-keybindings
Set up to use bind-map instead of evil-leader for leader key
functionality.

Alias evil-leader funcs and remove package
2015-11-21 18:18:01 +01:00
Rich Alesi
a16e170a41 Fix micro-state error.
Seems like `defdoc` was being defined by the return of `spacemacs//micro-state-set-minibuffer-height`.
2015-11-13 13:54:16 +01:00
syl20bnr
0389be8a6e micro-state: only grow minibuffer size with a min of 10 2015-11-09 00:36:07 -05:00
syl20bnr
1ac27be88e core: resize minibuffer for docstring of micro-states 2015-11-09 00:36:05 -05:00
syl20bnr
f7a2f9c2cd core: execute :on-enter before :doc in micro-state 2015-11-09 00:36:02 -05:00
syl20bnr
07d28a2d6d micro-state: :exit keyword now accepts a list 2015-10-18 23:35:51 -04:00
syl20bnr
038fc23c0d spacemacs layer: fix various issues with ahs micro-state
- made it work with *
- fix go to definition
- don't use the minibuffer
2015-08-10 23:56:40 -04:00
Török Edwin
b06b52d10a avoid conflict with hydra's lv.el
fixes #1463
2015-05-27 23:52:15 -04:00
syl20bnr
c4b7fe9af9 One / instead of two for functions used in spacemacs/post-theme-init 2015-05-13 21:59:59 -04:00
syl20bnr
53b7d600ff Add missing documentation in micro-state
for :execute-binding-on-enter
2015-05-09 22:36:16 -04:00
syl20bnr
9ee4e5d9fb Add :disable-evil-leader keyword in micro-states 2015-03-10 23:18:57 -04:00
syl20bnr
453343a920 Allow keymaps in micro-states 2015-03-10 23:11:52 -04:00
syl20bnr
4d9b9686f3 Add property :use-minibuffer to micro-state 2015-03-07 23:55:47 -05:00
syl20bnr
d6bd6976d1 Explicitly set last-command in micro-state wrappers 2015-03-07 17:22:23 -05:00
syl20bnr
cc86adcee1 Fix typos in micro-state source 2015-03-06 23:48:05 -05:00
syl20bnr
7e9bbbc8ae Rename :execute-command-on-enter to :execute-binding-on-enter 2015-02-28 00:05:09 -05:00
syl20bnr
a04290664c micro-state: Add property :execute-command-on-enter
If non nil and the bound key to initiate the micro-state is
also a micro-state binding, then execute the command of
the corresponding binding.
2015-02-27 23:57:10 -05:00
syl20bnr
bf2635e372 Generalize the bind properties for toggles and micro-states 2015-02-23 23:28:51 -05:00
syl20bnr
0d09c92466 Catch thrown exit in micro-state 2015-02-22 23:30:00 -05:00
syl20bnr
78431c18a0 Minor refactoring in micro-state.el 2015-02-22 01:10:26 -05:00
syl20bnr
c2e61a9036 Replace symbol-name by format %S 2015-02-22 01:02:17 -05:00
syl20bnr
bcdaa42d93 Add :pre and :post action for bindings in micro-state 2015-02-22 00:55:33 -05:00
syl20bnr
e794d0ef11 Add :persistent keyword for micro-state
Persistent micro-state stay active unless an explicit
exit key is pressed
2015-02-21 02:17:39 -05:00
syl20bnr
be907429e9 Force SPC to quit all micro-state
Avoid a bad edge case with guide-key and evil-leader
2015-02-20 23:27:43 -05:00
syl20bnr
324cd2ad3b Correctly display the doc associated to a nil binding in micro-state 2015-02-20 23:27:16 -05:00
syl20bnr
638b566cbc Set micro-state header face box width to -1
Prevent a glitch with lv height size
2015-02-20 23:26:22 -05:00
syl20bnr
0a5442e44a Add hydra lv.el to display micro-state in a window 2015-02-20 00:49:47 -05:00
syl20bnr
6f9d698bf9 Remove debug display in core-micro-state.el 2015-02-16 23:20:25 -05:00