Commit Graph

5004 Commits

Author SHA1 Message Date
9cdb0b85d3 Optimize large-file detection
Two less file ops when opening new files. Particularly helpful for
remote files.
2020-10-18 19:08:07 -04:00
6778c1239c Include package name in 'checked out...' message 2020-10-18 19:08:07 -04:00
b461f76b0d Fix *-local-vars-hook & doom-first-*-hook not triggering
When starting Emacs with a file path argument these hooks aren't set up
in time for the file to be processed.

Fixes #3891, #4082, #4104
2020-10-16 23:08:56 -04:00
390594442a Reset which-key replacements on doom/reload
Prevents build-up of which-key entries.

See justbur/emacs-which-key#226
2020-10-16 22:30:07 -04:00
35185b2175 Split doom-reload-hook into before/after hooks 2020-10-16 22:28:08 -04:00
b6fe731153 Fix #4103: respect delete-by-moving-to-trash
When calling doom/delete-this-file
2020-10-15 23:12:21 -04:00
23c36a2feb Fix wrong-type-arg error on 'doom compile' 2020-10-14 01:38:01 -04:00
d9683d1148 Fix #4074: map! with meta/hyper modifier prefixes 2020-10-11 20:31:46 -04:00
db07304c71 Don't enable explain-pause-mode at startup
When starting Emacs in debug mode, explain-pause-mode is enabled. This
pulls in other packages with it, which can taint results when testing
package load order. Also, explain-pause-mode is for measuring pauses
during interactive use, it isn't very useful for startup benchmarking.

So we only toggle it if doom-debug-mode is toggled interactively.
2020-10-11 16:41:07 -04:00
c59ae5d172 Stop ws-butler from corrupting undo history #4071 2020-10-11 16:41:07 -04:00
3f24fc3737 regexp-quote comp blacklist entries 2020-10-11 16:41:05 -04:00
8a45b4671e Bump :core
Fanael/rainbow-delimiters@5125f4e -> Fanael/rainbow-delimiters@f43d48a
Fuco1/smartparens@555626a -> Fuco1/smartparens@c59bfef
Wilfred/helpful@c0662aa -> Wilfred/helpful@1671e1d
bbatsov/projectile@46d2010 -> bbatsov/projectile@3670ebe
domtronn/all-the-icons.el@8c02280 -> domtronn/all-the-icons.el@6917b08
justbur/emacs-which-key@e48e190 -> justbur/emacs-which-key@ae59b7e
koral/gcmh@b1bde50 -> koral/gcmh@84c43a4
2020-10-11 16:22:13 -04:00
033cb48006 Fix void-variable comp-eln-load-path 2020-10-11 15:53:37 -04:00
9d4951d8b8 Merge pull request #4047 from flatwhatson/deferred-aot
Improvements to native-comp support
2020-10-11 15:43:37 -04:00
b52072ec90 Search compressed .el files in load history
On many installations, the .el files that are builtin to emacs are
compressed. We should search these as well.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2020-10-09 15:22:04 -07:00
2e07a85590 Native-compile everything on load-path
Add an extra pass to `doom build` to queue native compilation of all
packages on `load-path`. This ensures that all core and site Elisp
packages are actually native-compiled, even on "fast boot" builds.

Add `.local/autolads.el` to the blacklist as native-compiling this file
succeeds, but prevents emacs from starting up.

Revise the evil-collection-vterm blacklist entry to use a more efficient
regex.

Fix a bug where an updated .error file wasn't always written, causing
spurious rebuilds.
2020-10-09 09:34:34 +10:00
1d0f1575aa Remove comp-eln-load-path injection hack
This was fixed upstream, so comp-eln-load-path is now passed to async
compilation workers.
2020-10-09 09:34:34 +10:00
30140021de Export comp-deferred-compilation-black-list via autoloads
The latest straight.el adds `:no-native-compile` packages to the
compilation blacklist. We export the build-time blacklist via autoloads
so that it works as expected to prevent native compilation at runtime.
2020-10-09 09:34:23 +10:00
89c464ddf7 Bump straight.el
raxod502/straight.el@0c7c7571 -> raxod502/straight.el@728ea18e
2020-10-09 09:29:39 +10:00
86cd497bb5 Don't print ignored/whitelisted envvars on doom env
Except in debug mode.
2020-10-08 17:07:36 -04:00
9edcdd0633 Mention supported envvars in 'doom help' 2020-10-08 17:07:36 -04:00
17c9976bac Bump better-jumper
gilbertw1/better-jumper@6d24003 ->
gilbertw1/better-jumper@fe548d2

Fixes #4050, see gilbertw1/better-jumper#5
2020-10-08 16:35:47 -04:00
1255ebdbd7 Add XDG detection to 'doom install' #4040
Create ~/.config/doom instead of ~/.doom.d if your emacs config lives in
~/.config/emacs.
2020-10-06 14:19:37 -04:00
c84127069f Fix #4036: improve 'doom sync -u' output 2020-10-06 14:19:36 -04:00
29b12de83e Fix #3901: unset comp-deferred-compilation later 2020-10-06 02:08:17 -04:00
b29b865d30 Fix #3975: configure native-comp in sandbox 2020-10-06 02:08:17 -04:00
3cb7458d34 Fix #4033: correctly toggle explain-pause-mode
On doom-debug-mode.
2020-10-05 23:02:36 -04:00
e4864adfbe Update 'doom help upgrade' doctring 2020-10-05 17:21:17 -04:00
1aa48ce822 Fix #4029: remove project.el support project cmds
project.el doesn't seem to handle symlinks well.
2020-10-05 16:21:50 -04:00
911c8f48b4 Fix #2742: cursor offset in artist-mode
Due to line numbers.
2020-10-05 16:04:13 -04:00
0769b47cc8 Fix 'doom purge' not purging straight builds 2020-09-19 14:43:53 -04:00
ce9162647d cli/env: blacklist SHLVL & comment default blacklist 2020-09-10 18:03:32 -04:00
ae3a2fa8c2 doom-info: use &nopath prefix for 404'd modules
The alternative is a stringp error.
2020-09-02 14:23:11 -04:00
c55391d4ac Merge pull request #3876 from flatwhatson/no-native-compile
Allow :no-native-compile in package recipes
2020-09-01 06:59:33 -04:00
bb74d2716f Allow :no-native-compile in package recipes 2020-09-01 20:48:42 +10:00
3935d431fc tab-always-indent = nil
Seems like a more sensible default to reindent the line if cursor is at
BOL or in indentation, then insert literal indentation (tab or space *
tab-width) otherwise.
2020-09-01 01:41:39 -04:00
60ba42ca4a Fix #3873: use thing-at-point for nox & elpy 2020-08-31 23:11:33 -04:00
406c651059 Increase search depth for doom/help-search-headings 2020-08-31 14:53:42 -04:00
8f64a0eb31 Fix #3871: void-function doom-autoload-error
Due to calling an error as if it were a function.
2020-08-31 00:01:34 -04:00
2337f14563 bin/doom: enable-dir-local-variables = nil
So user .dir-locals.el doesn't interfere with our package manager.
2020-08-28 23:34:12 -04:00
5de08af8da bin/doom: improve error output
Show different message for straight errors (but log backtrace to
doom.error.log either way).
2020-08-28 04:34:56 -04:00
15779e7a16 Filter directories when rebuilding straight repos
Prevents auto-generated files like .DS_Store on macOS from causing an
error.
2020-08-27 23:22:24 +08:00
098f10306d Fix CLI error not including straight output 2020-08-27 03:11:46 -04:00
2bd921e15d Merge pull request #3850 from thiagokokada/cleanup-help-el
core: Cleanup core/autoload/help.el
2020-08-27 01:15:51 -04:00
a6dc9bf7e5 core-cli: minor refactors 2020-08-27 01:10:08 -04:00
518c97a2ac Rename {if,when}! -> eval-{if,when}!
To better represent its purpose, as extensions to Emacs' eval-when*
API (for control flow at compile time).
2020-08-27 01:10:08 -04:00
0111e26373 core: Cleanup core/autoload/help.el
Removing references after e24b8cd1d1.
2020-08-26 21:27:25 -03:00
b3006ecabb ui/modeline: update buffer id when renaming files
And revert 247ce145b, since I wasn't aware
after-set-visited-file-name-hook existed.
2020-08-26 19:54:05 -04:00
247ce145b4 Revert buffer after renaming file 2020-08-26 19:52:06 -04:00
e00560caf8 Fix #3827 (part 2): inverted file cookies
Turns out some autodefs weren't being noop'ed when their file's cookie
returns nil. This was the secondary cause of #3827.
2020-08-26 19:51:46 -04:00