Commit Graph

1779 Commits

Author SHA1 Message Date
cbfb3eeda4 Fix, rename & move doom/run-tests => doom-run-tests 2017-06-24 17:15:22 +02:00
fac587d21e Remove debug code in doom-initialize-modules 2017-06-24 16:51:37 +02:00
313fa06400 doom-setting--setter%s => doom--set%s 2017-06-24 16:39:45 +02:00
779ae60454 Refactor doom-resolve-hooks 2017-06-24 16:20:22 +02:00
84f4fdf9e7 Add+refactor core-lib tests 2017-06-24 16:20:09 +02:00
5ef61c7bb4 Remove :load-path for nlinum-hl 2017-06-24 02:25:15 +02:00
e38337b357 Evaluate featurep! at compile-time
Its return value shouldn't change during runtime.
2017-06-24 02:25:15 +02:00
83f4f2e725 Remove s.el dependency in doom/packages-update 2017-06-24 02:25:15 +02:00
e2c161cbf8 Clean up doom-get-outdated-packages 2017-06-24 02:25:15 +02:00
e75bc10baa Unset mode-line-format sooner in startup process 2017-06-24 02:25:15 +02:00
c60970ff2d Remove inject-trailing-whitespace functionality
This was buggy, inefficient and more trouble than its benefits were
worth. Perhaps we can now switch back to highlight-indent-guides...
2017-06-24 02:25:15 +02:00
e3eadf596d Disable persistent-undo; causes undo corruption
A known issue with undo-tree causes an "unrecognized entry in undo list
undo-tree-canary" error, which can result in the loss of work.
2017-06-24 02:25:15 +02:00
56d7c78e00 Expand :popup docstring 2017-06-24 02:25:15 +02:00
50f924bcfc Fix doom-ansi-apply alias to autoload in format!
A wrong-type-argument: symbolp error occurs when core files are
byte-compiled and the expanded message!/format! macros are trying to
cl-flet-alias 'color to doom-ansi-apply (which hasn't been loaded yet).
2017-06-24 02:25:15 +02:00
6d4c9c83c3 fix :text-obj map macro 2017-06-23 09:27:03 +05:30
a5e2a5745b Eval :ignore/:freeze in package! plists 2017-06-22 23:59:34 +02:00
ee1fb43b93 Make doom-get-outdated-packages asynchronous 2017-06-21 16:09:58 +02:00
8f7e138357 Add debug! macro 2017-06-21 16:09:34 +02:00
8f00b3d07a Minor general refactor 2017-06-20 16:32:50 +02:00
e44f5d0457 Call doom|finalize after doom-initialize-packages
doom-initialize-packages re-initializes certain important variables,
like gc-cons-threshold (which causes intermittent freezing when set too
high), without resetting them to sensible defaults. This ensures those
variable are reset afterwards.
2017-06-20 16:25:46 +02:00
345b704a0d Make interactive doom/compile less destructive
It would reload all files; which is harmless, but does unnecessarily
inflate variables that get push-ed or nconc-ed to. It's best to compile
from the command line.
2017-06-20 16:25:46 +02:00
3762d877b1 Appease almighty byte-compiler sama 2017-06-19 12:41:30 +02:00
392c58ea47 General refactor & cleanup 2017-06-19 00:32:45 +02:00
928812da8a Make def-setting! behave more like defmacro
set! used to aggressively evaluate its arguments (at expansion-time),
even if placed inside an after! block. This causes unavoidable errors if
those arguments use functions/variables that don't exist yet.

Fixes #112
2017-06-19 00:32:44 +02:00
27cbd36b69 Improve hl-line disable hook for visual mode 2017-06-19 00:04:20 +02:00
a2ca21cc21 Add doom*project-root advice fn 2017-06-19 00:03:37 +02:00
7d081c3154 Fix subr-x macro autoloads 2017-06-18 23:43:08 +02:00
7029d287e5 Add doom/toggle-profiler 2017-06-18 23:43:08 +02:00
a8df81b259 Optimize modeline rendering slightly 2017-06-18 23:43:08 +02:00
414363fe38 Revise documentation for def-project-mode! 2017-06-18 23:43:08 +02:00
8f9bd835a5 Make whitespace-injection more robust
+ No longer try to affect read-only buffers
+ Only activate if indent-tabs-mode is nil (spaces)
2017-06-18 23:43:08 +02:00
6d39c323c5 Hide mode-line during startup
Produces the appearance of a smoother start-up, with fewer UI elements
transforming as it reads the config.
2017-06-16 02:32:44 +02:00
4eb2a7cb41 General refactor + cleanup 2017-06-16 02:10:33 +02:00
3f69ebdfc8 Don't modify buffer on whitespace injection (#110)
In doom|inject-trailing-whitespace, for highlight-indentation-mode
2017-06-16 02:09:35 +02:00
1606deb046 Fix missing all-the-icons-material function 2017-06-15 23:57:57 +02:00
d3270a9b00 Fix whitespace-mode space-marks in nlinum (#109)
...by changing the padding character in line numbers.
2017-06-15 14:45:33 +02:00
3d6bd3f3f0 Improve whitespace-mode config 2017-06-15 14:45:32 +02:00
853ad98ae9 Fix editorconfig indent-policing in Lisp modes
Editorconfig in Lisp enforces lisp-indent-offset too strictly, ruining
its adaptive indentation. We don't want to disable it complete in those
modes however. In all other respects (controlling spaces vs tabs,
charset, max_line_length, etc) editorconfig is great.
2017-06-15 14:45:32 +02:00
cf7779138a Fix editorconfig-conf-mode 2017-06-15 14:24:18 +02:00
9039707184 Fix error when private init.el doesn't exist
Found in doom-initialize-packages, which DOOM calls in many
noninteractive functions.
2017-06-14 21:42:08 +02:00
816df321a5 General refactor & cleanup 2017-06-14 21:15:19 +02:00
633e693cab {Fix,Refactor} doom/describe-{setting,module} 2017-06-14 21:15:19 +02:00
9c93c453e8 Reorganize unit-tests and test workflow
+ Moved unit tests out of tests/ and into their respective modules.
+ Rewrite makefile and added these tasks:
  + <MODULE>/<SUBMODULE> -- byte-compile a specific module
  + test:<MODULE>/<SUBMODULE> -- runs tests for a specific module
  + testi -- run tests in an interactive session of Emacs (WIP)
  + run -- opens an Emacs session with this config; useful when it is in
    a non-standard location.
2017-06-14 21:15:19 +02:00
cacd188286 Replace doom-package-*-p with doom-package-prop 2017-06-14 21:15:19 +02:00
732dee608a Stability/error-handling refactor (part 1)
This refactor is about improving how Emacs deals with errors.

A large net is now cast at startup to catch possible errors, produce
more helpful error messages, and localize the damage. Significantly
reducing the risk of later modules not loading (and leaving you
stranded in a half-broken Emacs session).

The DOOM core files are an exception. If something messes up in there,
it *should* choke.

+ use-package will now report missing packages or slow-loading/broken
  def-package! configurations.
+ Persp-mode no longer (inadvertantly) hides buffers that pop up at
  startup, like the *Warnings*, *Backtrace* or debugger buffers.
+ `make autoloads` (or doom/reload-autoloads) now produces a slightly
  more informative error message if an error occurs while building the
  autoloads file.
+ Error handling for package management is *slightly* better now; error
  messages now include the type of error; this needs work.
2017-06-14 21:15:19 +02:00
55f0760c4e Add nlinum-hl to core/packages.el 2017-06-14 12:14:34 +02:00
6dff6e124b Bring back nlinum-hl
I moved the nlinum--region fix to the nlinum-hl package; which also
contains fixes for other problematic major-modes.
2017-06-14 02:51:24 +02:00
c1890307a6 Fix precedence of popup rules
More general rules should be lower in the list.
2017-06-13 17:52:06 +02:00
3031212a76 If an init-hook dies in the forest, does it make a sound? 2017-06-12 15:15:39 +02:00
042da73d5d Initialize doom-init-time a little sooner (#106) 2017-06-12 15:13:30 +02:00