Commit Graph

22 Commits

Author SHA1 Message Date
Henrik Lissner
98d2f1de3f
Add set-env! autodef; make :env obsolete 2018-06-15 03:42:01 +02:00
Henrik Lissner
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
Henrik Lissner
1e81a35461
Minimize dependence on map!
This is in preparation for general.el integration coming in 2.1.1. It is
very likely that map! will change (and even more, be split into several
macros). Not much, but change none-the-less. Specifically, the state
keywords (e.g. :nvi, :n, :i) will be removed in favor of a :state
property that takes a list, e.g. (normal visual insert).

In any case, both map! and general are also relatively expensive
compared to define-key and evil-define-key* (and the new define-key!
macro), so use that when we can.

This also means changes to either API won't affect Doom's modules in the
long term.
2018-06-03 15:46:00 +02:00
Henrik Lissner
e88f84fd02 Rewrite tools/password-store API 2018-05-29 17:50:55 +02:00
Henrik Lissner
09cb4f6716
Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
Brandon Orther
f24725382f Update password-store +auth to only use auth-source-pass
Now that auth-password-store has been renamed to auth-source-pass and it matches
the same feature included in emacs 26 under the same name we don't need custom
checks and package loading.
2018-03-27 19:37:43 -07:00
Henrik Lissner
74bbefc5fd
tools/password: auto-password-store => auth-source-store #480
The package was renamed upstream.
2018-03-25 20:26:06 -04:00
Henrik Lissner
de40ccd361
tools/password-store: don't add to auth-sources by default #404 2018-03-18 15:33:08 -04:00
Henrik Lissner
6c4e048c23
General refactor & cleanup 2018-02-14 07:47:22 -05:00
Henrik Lissner
84cba91e50
feature/popup: remove default slot & window-width
...and fix :popup not mapping the size parameter to the correct
dimension when no side is specified.
2018-01-07 05:56:00 -05:00
Henrik Lissner
08b479b06f
Rename popup parameter escape-quit => quit 2018-01-06 02:42:53 -05:00
Henrik Lissner
91357a3e5d
💥 Replace core-popup with new feature/popup module
This is a breaking change! Update your :popup settings. Old ones will
throw errors!

Doom's new popup management system casts off its shackles (hur hur) and
replaces them with the monster that is `display-buffer-alist`, and
window parameters.

However, this is highly experimental! Expect edge cases.  Particularly
with org-mode and magit (or anything that does its own window
management).

Relevant to #261, #263, #325
2018-01-06 02:17:43 -05:00
Henrik Lissner
9d81bc5a8b
Major refactor: use-package-always-defer = nil & use :hook
Possibly breaking change: packages are no longer deferred by default.

Addresses #286
2017-12-08 23:14:11 -05:00
Henrik Lissner
9506cc9902
Take 2 on auth-store-pass detection in Emacs 26+ 2017-07-29 00:00:21 +02:00
Henrik Lissner
f467c29252
Remove auto-store-pass support (keep things simple!) 2017-07-14 18:20:23 +02:00
Henrik Lissner
b7776b7f7b
Fix auth-store-pass error in Emacs 26+ #146 2017-07-14 11:58:21 +02:00
Henrik Lissner
1678bf8382 tools/password-store: version check + refactor 2017-06-13 11:04:18 +02:00
Henrik Lissner
77298f3672
+pass/ivy: fix open-url; add +pass-get-field (#103) 2017-06-12 02:39:25 +02:00
Henrik Lissner
0047baf15c
tools/password-store: improve ivy support (#103)
+ Removed +pass/find & +pass/browse.
+ Added +pass/open (delegates to +pass/ivy, helm-pass or pass, depending).
+ Added +pass/ivy with copy password/username, open url and edit entry
  actions.
2017-06-11 18:02:47 +02:00
Henrik Lissner
20cd13c572
tools/password-store: add helm-pass support 2017-06-11 18:00:45 +02:00
Henrik Lissner
2b3311faa2
tools/password-store: refactor 2017-06-11 16:49:33 +02:00
Benjamin Andresen
9c25865942 tools/password-store: initial commit
pass doesn't play at all with shackle yet
2017-06-11 15:55:30 +02:00