Commit Graph

17 Commits

Author SHA1 Message Date
Henrik Lissner
ec330e6348
Add docs/faq.org
Relevant to #1771, #372, #174
2019-10-08 20:11:21 -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
Henrik Lissner
ead07dea83
Fix issue/PR templates & add sponsor button
Referenced in #1554, #1532, #1051
2019-07-10 21:13:41 +02:00
Henrik Lissner
9fc87049ab
Add new Issue & PR templates 2019-05-01 21:02:29 -04:00
Henrik Lissner
59d37334e3
Move issue/PR templates to docs/ 2019-01-03 01:28:49 -05:00