Commit Graph

7 Commits

Author SHA1 Message Date
2496e0348d Add :when support to after!
This lets you delay a body of code until an arbitrary condition is
met (which is checked whenever a file is loaded).

Also refactors set-file-template! to wait until +file-templates-alist is
defined.
2018-06-15 03:42:01 +02:00
d8b1e469bc Introduce autodefs to replace some settings
+ :popup -> set-popup-rule!
+ :popups -> set-popup-rules!
+ :company-backend -> set-company-backend!
+ :evil-state -> set-evil-initial-state!

I am slowly phasing out the setting system (def-setting! and set!),
starting with these.

What are autodefs? These are functions that are always defined, whether
or not their respective modules are enabled. However, when their modules
are disabled, they are replaced with macros that no-op and don't
waste time evaluating their arguments.

The old set! function will still work, for a while.
2018-06-15 03:42:01 +02:00
818cb27724 Refactor feature/file-templates
This removes its dependency on the feature/snippets.
2018-06-03 23:43:27 +02:00
b806ff937c feature/file-templates: rewrite & fix wrong-number-of-args errors #602 2018-05-24 22:34:37 +02:00
5abdeed8fd feature/file-templates: rewrite without autoinsert
autoinsert was more trouble than it was worth, so I reinvented a better
wheel.
2018-05-18 01:47:03 +02:00
ef4962c702 feature/file-templates: new +file-templates/insert-license command 2018-02-17 18:41:21 -05:00
78fe91ce10 feature/file-templates: update header line in doom templates 2018-02-16 02:12:58 -05:00