Commit graph

34 commits

Author SHA1 Message Date
Jay
3e90ef7c8b
Replaced evil-define-key with map! 2020-06-02 22:53:48 -04:00
Jay
ddabf8bc81
Added paste-transient-state to API recipes
Replicates spacemacs' paste-transient-state, felt it may be useful as a starting example for something slightly more complex to make Spacemacs users feel more at home. I'm happy to move it if you feel it belongs somewhere else, and no love lost if you don't wish to include this at all.
2020-06-02 22:25:30 -04:00
Henrik Lissner
a9bf0b8985
Add cmd!, cmd!!, cmds! convenience macros
It's kind of silly that our command lambda macros (λ! and λ!!) need a
snippet, special key sequence or copy-paste to insert, so in the spirit
of fn! -- and to make sure they take up less space than `lambda!` --
I've added `cmd!` and `cmd!!` aliases. `lambda!` and `lambda!!` are now
deprecated. λ! and λ!! will remain.

I've also added `cmds!` as a convenience wrapper around
general-predicate-dispatch.
2020-05-27 18:29:35 -04:00
Henrik Lissner
2419990caa
s/doom-store-set/doom-store-put
This was renamed in 4b28e9ce8
2020-05-12 20:19:41 -04:00
Henrik Lissner
29e91a6ff6
Replace doom-cache library with doom-store
And remove persistent-store dependency.
2020-05-02 00:14:08 -04:00
Henrik Lissner
41279cfc41
Fix centered-frame snippet 2020-02-18 18:47:55 -05:00
Henrik Lissner
04d14bcba9
Minor refactors & comment correction 2020-02-02 16:03:34 -05:00
Henrik Lissner
871201dad6
Minor doc/comment revision & fixes 2020-01-26 01:31:53 -05:00
Henrik Lissner
a9402cfb55
Fix #2373: bring back package pinning
This needs some serious refactoring...
2020-01-25 19:02:00 -05:00
Henrik Lissner
a681a32efc
docs/api: add setq! demo 2020-01-24 17:50:45 -05:00
Henrik Lissner
da09a3eb8c
Mention commit pinning in docs with package! 2019-12-28 14:00:08 -05:00
Henrik Lissner
58df554090
docs/api: add letenv! demo 2019-12-15 22:54:47 -05:00
Henrik Lissner
da25027dc3
docs/api: clean up; add results; add :eval header args 2019-12-15 22:54:24 -05:00
Henrik Lissner
37cb3739f5
docs/api: add appendq!, prependq! & pushnew! demos 2019-12-15 04:49:51 -05:00
Henrik Lissner
33dfe85c66
docs/api: add lambda! demos 2019-12-13 14:35:20 -05:00
Henrik Lissner
008c14640b
docs/api: add lambda!! demos 2019-12-13 14:35:08 -05:00
Henrik Lissner
69366ed674
docs/api: correct global-set-key uses 2019-11-25 15:28:38 -05:00
Henrik Lissner
8f793a387b
docs/api: expand map! example 2019-11-14 15:43:44 -05:00
Henrik Lissner
2a63faf0d2
docs/api: revise snippet description 2019-11-01 14:59:31 -04:00
Gang Liang
752a34b17b Add terminal-cursor-change snippet. 2019-10-31 20:16:03 -07:00
Henrik Lissner
323e0adf45
Minor refactors & reformatting across the board 2019-10-17 01:47:58 -04:00
Maximiliano
dea5d84069 Add more api demos (#1845)
* Added function Demos
* Added use-package demos
* Some corrections
* Fix duplicated use-package! type
2019-10-03 14:51:08 -04:00
Henrik Lissner
0e1bbc4499
Expand custom{-theme,}-set-faces! example in docs/api.org
To include usage of doom-themes' api
2019-09-09 23:04:07 -04:00
Henrik Lissner
49b527475d
Add after! example to docs/api.org 2019-09-09 23:04:07 -04:00
Henrik Lissner
1eb8be9875
Add load! example to docs/api.org 2019-09-09 23:04:07 -04:00
Henrik Lissner
4ebb7df433
Add package! example to docs/api.org 2019-09-09 23:04:07 -04:00
Henrik Lissner
1539387747
Reformat docs/api.org 2019-09-07 19:57:58 -04:00
Henrik Lissner
a365b1cf9d
docs/api: fix quoting for custom-(theme-)?set-faces! 2019-08-18 14:38:45 -04:00
Henrik Lissner
b2b87aacba
docs/api: minor comment corrections 2019-07-29 18:56:49 +02:00
Henrik Lissner
a3e262c7ac
💥 Refactor add-hook! macro & change arg order
This update may potentially break your usage of add-hook! if you pass
the :local or :append properties to it. This is how they used to work:

  (add-hook! :append 'some-mode-hook #'do-something)

Thsoe properties must now follow the hooks, e.g.

  (add-hook! 'some-mode-hook :append #'do-something)

Other changes:
- Various add-hook calls have been renamed to add-hook! because I
  incorrectly assumed `defun` always returned its definition's symbol,
  when in fact, its return value is "undefined" (so sayeth the
  documentation). This should fix #1597.
- This update adds the ability to add multiple functions to hooks
  without a list:

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

- The indentation logic has been changed so that consecutive function
  symbols at indented at the same level as the first argument, but forms
  are indent like a defun.

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

    (add-hook! 'some-mode-hook
      (message "Hello"))
2019-07-26 20:17:29 +02:00
Henrik Lissner
e6201ca952
Add :if, :when, :unless & :cond support to doom! macro
Now you can conditionally enable/disable modules.
2019-07-26 12:05:13 +02:00
Henrik Lissner
7d9e844e35
docs/api: add custom{,-theme}-set-faces! entry 2019-07-26 03:12:06 +02:00
Henrik Lissner
d55f284386
Refactor file-exists-p macro
And refactor too doom--resolve-path-forms
2019-07-23 20:43:24 +02:00
Henrik Lissner
be789caa04
Add elisp demos for Doom API in helpful buffer 2019-07-22 02:30:40 +02:00