Commit Graph

37 Commits

Author SHA1 Message Date
2e1775c472 docs/api: fix inline command in map! example 2020-07-28 15:50:25 -04:00
091635d589 docs/api: add missing TOC entry 2020-07-23 21:45:54 -04:00
e517da66a7 docs/api: fix "Centered frame" snippet 2020-07-23 21:45:54 -04:00
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
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
2419990caa s/doom-store-set/doom-store-put
This was renamed in 4b28e9ce8
2020-05-12 20:19:41 -04:00
29e91a6ff6 Replace doom-cache library with doom-store
And remove persistent-store dependency.
2020-05-02 00:14:08 -04:00
41279cfc41 Fix centered-frame snippet 2020-02-18 18:47:55 -05:00
04d14bcba9 Minor refactors & comment correction 2020-02-02 16:03:34 -05:00
871201dad6 Minor doc/comment revision & fixes 2020-01-26 01:31:53 -05:00
a9402cfb55 Fix #2373: bring back package pinning
This needs some serious refactoring...
2020-01-25 19:02:00 -05:00
a681a32efc docs/api: add setq! demo 2020-01-24 17:50:45 -05:00
da09a3eb8c Mention commit pinning in docs with package! 2019-12-28 14:00:08 -05:00
58df554090 docs/api: add letenv! demo 2019-12-15 22:54:47 -05:00
da25027dc3 docs/api: clean up; add results; add :eval header args 2019-12-15 22:54:24 -05:00
37cb3739f5 docs/api: add appendq!, prependq! & pushnew! demos 2019-12-15 04:49:51 -05:00
33dfe85c66 docs/api: add lambda! demos 2019-12-13 14:35:20 -05:00
008c14640b docs/api: add lambda!! demos 2019-12-13 14:35:08 -05:00
69366ed674 docs/api: correct global-set-key uses 2019-11-25 15:28:38 -05:00
8f793a387b docs/api: expand map! example 2019-11-14 15:43:44 -05:00
2a63faf0d2 docs/api: revise snippet description 2019-11-01 14:59:31 -04:00
752a34b17b Add terminal-cursor-change snippet. 2019-10-31 20:16:03 -07:00
323e0adf45 Minor refactors & reformatting across the board 2019-10-17 01:47:58 -04:00
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
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
49b527475d Add after! example to docs/api.org 2019-09-09 23:04:07 -04:00
1eb8be9875 Add load! example to docs/api.org 2019-09-09 23:04:07 -04:00
4ebb7df433 Add package! example to docs/api.org 2019-09-09 23:04:07 -04:00
1539387747 Reformat docs/api.org 2019-09-07 19:57:58 -04:00
a365b1cf9d docs/api: fix quoting for custom-(theme-)?set-faces! 2019-08-18 14:38:45 -04:00
b2b87aacba docs/api: minor comment corrections 2019-07-29 18:56:49 +02:00
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
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
7d9e844e35 docs/api: add custom{,-theme}-set-faces! entry 2019-07-26 03:12:06 +02:00
d55f284386 Refactor file-exists-p macro
And refactor too doom--resolve-path-forms
2019-07-23 20:43:24 +02:00
be789caa04 Add elisp demos for Doom API in helpful buffer 2019-07-22 02:30:40 +02:00