Commit Graph

16 Commits

Author SHA1 Message Date
6729de9918 evil-goggles-duration = 0.1
Display a little longer.
2018-06-04 00:12:51 +02:00
6b70831386 ui/evil-goggles: evil-goggles-enable-delete = nil 2018-05-25 00:56:34 +02:00
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
3e6d6279a6 ui/evil-goggles: remove unnecessary toggle wrapper command 2018-05-16 13:06:07 +02:00
94f9e43f25 Rewrite :defer semantics
:defer now supports a hook, a cons cell with (SYMBOL . INTEGER) where
SYMBOL is a hook and INTEGER is a number of idle seconds before the
package is autoloaded, or just the integer (as per the default behavior
of :defer).

Also fixes an issue where switch-buffer-deffered packages (like
smartparens) wouldn't load.
2018-05-15 10:54:45 +02:00
7122a3e01b ui/evil-goggles: enable evil-goggles-mode on load 2018-05-15 03:15:45 +02:00
a631c10d05 Exploit new :defer input|buffer across various modules 2018-05-14 20:45:47 +02:00
6c8a8a723a ui/evil-goggles: evil-goggles-enable-change = nil
Until edkolev/evil-goggles#19 is fixed
2018-05-07 19:26:31 +02:00
6f4ca15445 ui/evil-goggles: evil-goggles-pulse = nil (slow) 2018-02-19 20:26:29 -05:00
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
cbabf6849c Standardize module READMEs 2017-08-21 20:13:31 +02:00
4984a548d1 Refactor DOOM init & add new init hooks
+ Add doom-init-hook and doom-post-init-hook to simplify Emacs init
  hooks into less ambiguous ones.
+ Attach former after-init-hook and emacs-startup-hook hooks to new doom
  init hooks.
+ Vastly improves daemon and tty support: preventing incorrect colors
  from bleeding across face class barriers, and into GUI Emacs and vice
  versa, when spawned with emacsclient.
+ Fix persp-mode breaking Emacs daemon, and ensuring that initialization
  is done properly in terminal Emacs (and emacsclient frames).
2017-06-12 00:37:14 +02:00
c7254e7bdc Major optimization refactor, across the board
+ enable lexical-scope everywhere (lexical-binding = t): ~5-10% faster
  startup; ~5-20% general boost
+ reduce consing, function calls & garbage collection by preferring
  cl-loop & dolist over lambda closures (for mapc[ar], add-hook, and
  various cl-lib filter/map/reduce functions) -- where possible
+ prefer functions with dedicated opcodes, like assq (see byte-defop's
  in bytecomp.el for more)
+ prefer pcase & cond (faster) over cl-case
+ general refactor for code readability
+ ensure naming & style conventions are adhered to
+ appease byte-compiler by marking unused variables with underscore
+ defer minor mode activation to after-init, emacs-startup or
  window-setup hooks; a customization opportunity for users + ensures
  custom functionality won't interfere with startup.
2017-06-09 00:47:45 +02:00
ef8dede1ed evil-goggles: defer load; disable diff faces (#93)
Diff faces is a customization, which is best saved for the private
module. Also, defer evil-goggles-mode to emacs-startup.
2017-06-07 21:02:50 +02:00
b6beacf804 Refactor evil-goggles config 2017-06-07 03:57:21 +02:00
78c13a4202 added module ui/evil-goggles 2017-06-04 13:27:19 -04:00