Commit graph

4586 commits

Author SHA1 Message Date
Rudi Grinberg
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
Henrik Lissner
86cd497bb5
Don't print ignored/whitelisted envvars on doom env
Except in debug mode.
2020-10-08 17:07:36 -04:00
Henrik Lissner
9edcdd0633
Mention supported envvars in 'doom help' 2020-10-08 17:07:36 -04:00
Bryan Gilbert
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
Henrik Lissner
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
Henrik Lissner
c84127069f
Fix #4036: improve 'doom sync -u' output 2020-10-06 14:19:36 -04:00
Henrik Lissner
29b12de83e
Fix #3901: unset comp-deferred-compilation later 2020-10-06 02:08:17 -04:00
Henrik Lissner
b29b865d30
Fix #3975: configure native-comp in sandbox 2020-10-06 02:08:17 -04:00
Henrik Lissner
3cb7458d34
Fix #4033: correctly toggle explain-pause-mode
On doom-debug-mode.
2020-10-05 23:02:36 -04:00
Henrik Lissner
e4864adfbe
Update 'doom help upgrade' doctring 2020-10-05 17:21:17 -04:00
Henrik Lissner
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
Henrik Lissner
911c8f48b4
Fix #2742: cursor offset in artist-mode
Due to line numbers.
2020-10-05 16:04:13 -04:00
Henrik Lissner
0769b47cc8
Fix 'doom purge' not purging straight builds 2020-09-19 14:43:53 -04:00
Henrik Lissner
ce9162647d
cli/env: blacklist SHLVL & comment default blacklist 2020-09-10 18:03:32 -04:00
Henrik Lissner
ae3a2fa8c2
doom-info: use &nopath prefix for 404'd modules
The alternative is a stringp error.
2020-09-02 14:23:11 -04:00
Henrik Lissner
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
Andrew Whatson
bb74d2716f Allow :no-native-compile in package recipes 2020-09-01 20:48:42 +10:00
Henrik Lissner
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
Henrik Lissner
60ba42ca4a
Fix #3873: use thing-at-point for nox & elpy 2020-08-31 23:11:33 -04:00
Henrik Lissner
406c651059
Increase search depth for doom/help-search-headings 2020-08-31 14:53:42 -04:00
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
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
yuhan0
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
Henrik Lissner
098f10306d
Fix CLI error not including straight output 2020-08-27 03:11:46 -04:00
Henrik Lissner
2bd921e15d
Merge pull request #3850 from thiagokokada/cleanup-help-el
core: Cleanup core/autoload/help.el
2020-08-27 01:15:51 -04:00
Henrik Lissner
a6dc9bf7e5
core-cli: minor refactors 2020-08-27 01:10:08 -04:00
Henrik Lissner
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
Thiago Kenji Okada
0111e26373 core: Cleanup core/autoload/help.el
Removing references after e24b8cd1d1.
2020-08-26 21:27:25 -03:00
Henrik Lissner
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
Henrik Lissner
247ce145b4
Revert buffer after renaming file 2020-08-26 19:52:06 -04:00
Henrik Lissner
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
Henrik Lissner
e459842a9b
Escape newlines in backtrace frames
And quote strings
2020-08-26 16:02:55 -04:00
Henrik Lissner
c7588bacdf
cli/upgrade: don't reload if Doom's up-to-date 2020-08-26 15:11:47 -04:00
Henrik Lissner
63a03848a3
Fix literate tangling on 'doom sync'
Relevant to #3746
2020-08-25 06:01:35 -04:00
Henrik Lissner
c0500df5fb
bin/doom: move debugger config to core-cli
And remove unnecessary path expansion.
2020-08-25 05:08:22 -04:00
Henrik Lissner
a986621a5f
Revert 70148bb
Fixes #3829
Relevant to #3691
2020-08-25 01:57:00 -04:00
Henrik Lissner
6e22a15e43
Fix 'doom help'
doom-cli-internal-p was accidentally removed in e632871a1, and the
psuedo CLI command :main was renamed to :doom.
2020-08-24 23:36:11 -04:00
Henrik Lissner
0dfee56e35
Fix string type error on 'doom upgrade' 2020-08-24 23:22:57 -04:00
Henrik Lissner
5c6189fb4e
Simplify doom/version output
Only really needs to output Doom's version and build info.
2020-08-24 23:00:32 -04:00
Henrik Lissner
e632871a11
core-cli: backport more refactors from rewrite
Still a long way to go, but this introduces a few niceties for
debugging CLI failures:

+ The (extended) output of the last bin/doom command is now logged to
  ~/.emacs.d/.local/doom.log
+ If an error occurs, short backtraces are displayed whether or not you
  have debug mode on. The full backtrace is written to
  ~/.emacs.d/.local/doom.error.log.
+ bin/doom now aborts with a warning if:
  - The script itself or its parent directory is a symlink. It's fine if
    ~/.emacs.d is symlinked though.
  - Running bin/doom as root when your DOOMDIR isn't in /root/.
  - If you're sporting Emacs 26.1 (now handled in the elisp side rather
    than the /bin/sh shebang preamble).
+ If a 'doom sync' was aborted prematurely, you'll be warned that Doom
  was left in an inconsistent state and that you must run `doom sync`
  again.

May address #3746
2020-08-24 23:00:32 -04:00
Henrik Lissner
7e362e8fbd
Redesign doom/info
+ Replace "daemonp" and "windowsys" fields with "traits" field, which
  can now indicate the presence of: Chemacs, exec-path-from-shell,
  symlinked EMACSDIR/DOOMDIR, a running server, the daemon and an envvar
  file.
+ Now replaces $USER in absolute paths with literal "$USER".
+ Reordered fields from most to least general (system -> emacs -> doom)
+ Show "&user" next to modules that are private modules (defined in
  ~/.doom.d/modules/)
2020-08-24 22:27:40 -04:00
Henrik Lissner
1884828d22
Add :shadow parameter to package!
For to make replacing built-in packages easier.
2020-08-24 22:27:40 -04:00
Henrik Lissner
801cfd63d4
Don't recenter window after better-jumper jump
On C-o or C-i; this can be more disorienting than helpful.
2020-08-21 15:49:39 -04:00
Henrik Lissner
4e82ee4397
Refactor doom-debug-mode
+ Add explain-pause-mode
+ Now reloads itself if doom-debug-variables is changed or when one of
  its variables becomes available.
+ doom-debug-variables now supports a cons cell entry where its CAR is
  the name of the variable and CDR is the value it should be set to when
  doom-debug-mode is active.
2020-08-21 01:26:24 -04:00
Henrik Lissner
70148bbfc8
Inhibit local-vars hooks when reverting
Possibly addresses #3691
2020-08-21 00:03:01 -04:00
Henrik Lissner
995b45285c
core: revise & clarify comments 2020-08-20 03:35:29 -04:00
Henrik Lissner
c74f8170b6
Remove mac-specific packages from core
Now that they're in :os macos
2020-08-20 03:33:35 -04:00
Henrik Lissner
dddfd9a7b1
Fix #3787: only inhibit some hooks for org-src ops
Inhibiting all MAJOR-MODE-hook functions (to fix #3660) would mean
inhibiting some useful functionality, like indentation or syntax
highlighting modes. We only want to inhibit expensive hooks. Since Doom
adds these to MAJOR-MODE-local-vars-hook by convention, we can
selectively inhibit those instead.
2020-08-20 02:30:06 -04:00
Henrik Lissner
f4ec42ae5c
Move :tools macos to :os macos 2020-08-20 02:14:32 -04:00