Commit Graph

12 Commits

Author SHA1 Message Date
f6dc6ac74e Refactor out map.el usage
After some profiling, it turns out map-put and map-delete are 5-7x
slower (more on Emacs 25) than delq, setf/alist-get and add-to-list for
small lists (under 250 items), which is exactly how I've been using
them.

The only caveat is alist-get's signature is different on Emacs 25, thus
a polyfill is necessary in core-lib.
2018-06-23 19:53:54 +02:00
5531d7115a Fix indentation for many autodef setters 2018-06-22 01:49:21 +02:00
0d19b9e61c Refactor +file-templates--expand 2018-06-22 01:49:21 +02:00
8bd9b24137 Add unset capability to set-file-template! 2018-06-22 01:49:20 +02:00
ca2c8b5a45 Minor refactor, across the board
Do you see the board? Now look at the other side. That's how far this
refactor extends.

Yes.
2018-06-18 15:02:24 +02:00
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