Commit graph

5004 commits

Author SHA1 Message Date
Henrik Lissner
5aaaf3d99c
Remove text-mode from so-long-target-modes
This is too buggy as a general rule. Too many false positive bug
reports from plugins writing text files that are too large/long.

Fixes #4419
2020-12-15 16:58:43 -05:00
Henrik Lissner
8c397902bc
Fix #4432: comp-deferred-compilation-{black,deny}-list 2020-12-14 16:48:14 -05:00
Henrik Lissner
9490d42cd3
Comment revision 2020-12-14 15:48:29 -05:00
Henrik Lissner
d69d245778
Remove sp-escape-quotes-after-insert hack
Was fixed upstream at some point.
2020-12-13 19:48:43 -05:00
Henrik Lissner
04b29c70d2
doom/escape: change this-command only if interactive 2020-12-13 19:48:32 -05:00
Henrik Lissner
084defb165
Reset sp-pair-overlay-keymap for evil users
Smartparens creates a conditional keybind on C-g when its overlays are
present (whether or not they're visible). This causes confusion when
evil users are forced to press C-g twice to exit insert mode.
2020-12-13 19:41:08 -05:00
Henrik Lissner
65416ff472
Fix #4427: ivy-read-action-format-function = ivy-read-action-format-columns
And remove max-mini-window-height, which interferes with ivy's own
minibuffer resizing logic, and isn't a terribly helpful default anyway.
2020-12-13 15:42:52 -05:00
Henrik Lissner
5d3496575c
Fix #4421: masquerade doom/escape as keyboard-quit
Or abort-recursive-edit, depending. Some other packages/commands listen
for these two (like undo-fu), and by remapping C-g we break those.
2020-12-12 22:54:48 -05:00
Henrik Lissner
97d8de81fe
Remove defunct straight-fix-org setting
It was removed upstream.
2020-12-12 15:56:36 -05:00
Henrik Lissner
6075e6f143
Refactor initialization of package state 2020-12-12 15:56:36 -05:00
Henrik Lissner
6f5cde1386
Merge pull request #4414 from nbfalcon/bugfix/evil-ex-smartparens
Enable `smartparens' for `evil'
2020-12-12 13:03:31 -05:00
Nikita Bloshchanevich
0d330f7a7e `doom/help-modules': C-u -> browse directory
If called with a C-u prefix, `doom/help-modules' now browses the module's
directory instead of opening its documentation. This exposes the VISIT-DIR
argument to `interactive' use.
2020-12-12 13:24:15 +01:00
Nikita Bloshchanevich
61135f5374 Enable smartparens' for evil-ex'
febf960 introduced a regression, in that it caused `smartparens-mode' to
no longer be enabled for `evil-ex'. This is because the latter doesn't
call `read--expression', but calls the minibuffer directly instead.

Return `doom-init-smartparens-in-minibuffer-maybe-h', enabling
`smartparens' for `evil-ex'. The hook responsibly for enabling it in
`eval-expression-minibuffer-setup-hook' was renamed to
`doom-init-smartparens-in-eval-expression-h', since otherwise the naming
would have been awkward.

Also explicity enable `smartparens-mode' instead of toggling it.
2020-12-12 12:58:41 +01:00
Henrik Lissner
4281a772b1
Revise core lib docstrings for clarity 2020-12-11 17:38:59 -05:00
Henrik Lissner
10f1b8040a
Remove extraneous newline in doom/help-packages output 2020-12-11 17:38:18 -05:00
Henrik Lissner
8edabbecfa
Add kbd! alias for general-simulate-key macro 2020-12-11 16:59:47 -05:00
Henrik Lissner
3c8a2a655f
Fix envvar file encoding for Windows users 2020-12-11 15:50:02 -05:00
Henrik Lissner
07db84bfe2
Don't chase symlinks
This should make more exotic symlink config setups viable, but should
also speed up a few internal operations. There are too many possible
symlink configurations to support them all, however.
2020-12-11 15:50:02 -05:00
Henrik Lissner
2c646df027
Initialize more straight state in doom-initialize-packages
May address #3172 and some issues with certain files failing to
byte-compile because certain dependencies were missing at compile-time.
2020-12-11 15:50:02 -05:00
Henrik Lissner
96d7e50f3e
Distinguish <C-i> from "C-i" 2020-12-11 15:50:02 -05:00
Henrik Lissner
a3b8be52a8
Improve doom/help-packages
+ Cache package list
+ Show "generating package list" message the first time (better ux)
+ Display location of package files in package information
+ Turn links/file paths into buttons
+ Add link to module readmes (if any)

Mentioned in #4406
2020-12-11 15:50:01 -05:00
Henrik Lissner
55e90f064f
Load gcmh-mode a little sooner
Ensures it is loaded in time when files are loaded directly from the
terminal.
2020-12-11 01:41:38 -05:00
Henrik Lissner
febf960c4e
Merge pull request #4401 from nbfalcon/bugfix/edebug-eval-expression-smartparens
Enable smartparens for `edebug-eval-expression'
2020-12-09 17:30:25 -05:00
Nikita Bloshchanevich
9e56927b5f Enable smartparens for `edebug-eval-expression'
`doom-init-smartparens-in-minibuffer-maybe-h' is responsible for enabling
`smartparens' in the minibuffer, which it does by checking `this-command'.
However, the list of commands doesn't include `edebug-eval-expression',
preventing the mode from being enabled for it.

Fix this by enabling `smartparens' in `eval-expression-minibuffer-setup-hook',
unconditionally, which means that anything using `interactive' "x" or
`read--expression' will work correctly.
2020-12-09 21:55:21 +01:00
Henrik Lissner
4652511440
Fix #4384: save server auth files to EMACSDIR
It's where the daemon looks for them. It's too much hassle to move it
elsewhere.
2020-12-08 21:40:10 -05:00
Henrik Lissner
d88e0795b6
Allow eldoc after doom/escape or evil state change 2020-12-02 17:58:10 -05:00
Henrik Lissner
b5e948054c
Refactor & reformat core.el
Backport a bit of core.el from our CLI rewrite.
2020-12-02 17:58:09 -05:00
Henrik Lissner
b7f6532e4f
Fix startup hooks not running in vanilla sandbox 2020-12-01 18:16:12 -05:00
Rudi Grinberg
9350beb544 Upgrade: remove leftover ref
The upgrade process leaves a left over ref:

```
$ git branch
..
  _upgrade_HEAD
..
```

This commit deletes that.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2020-12-01 15:06:15 -08:00
Kirill A. Korinsky
be923535fa
upgrade.el: force fetch
`doom-cli-upgrade` calls `git fetch` to fetch remote branch and tags and
check output code of this command to complain when it failed.

It fails when remote server isn't available that is good.

But it also fails when it can't to fast-forward a branch that will be
used to upgrade doom-emacs.

The last case created a loop and the only way to broke this loop is
remote a branch that should be used for upgrade.

Unfortunately user has no idea about branch name and can't do anything,
just enjoy crash with `Failed to fetch from upstream` message.

This commit added `--force` flag to `git fetch` that forces it to
overwrite branch that is used to upgrade that prevent such loop.

It also fixed https://github.com/hlissner/doom-emacs/issues/4346
2020-12-01 21:19:48 +01:00
Henrik Lissner
affd076d53
Minor refactors & reformatting 2020-12-01 13:53:46 -05:00
Henrik Lissner
c517be8e69
Advise locate-user-emacs-file to use doom-etc-dir
This is commonly used in Emacs packages to resolve to a location in
`~/.emacs.d`, as storage or a cache. Rather than addressing each
file/directory variable as they are encountered, better to address this
at the source.

Also: this makes some file/directory settings redundant, so they were
removed.

Closes #4347
2020-12-01 13:53:10 -05:00
Henrik Lissner
cd88f6528e
Refactor MODE-local-var-hook trigger 2020-11-30 23:35:03 -05:00
Henrik Lissner
b426e21ef1
Refactor doom-num-cpus
Adds error handling.
2020-11-30 23:35:03 -05:00
Rudi Grinberg
12b733b33e Unhardcode upstream repo in diff url
Use `doom-repo-url` in diff url to show diff.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2020-11-29 17:46:40 -08:00
Rudi Grinberg
bf50149ee3 Fix doom upgrade
Previously, `doom upgrade` would emit:

```
New revision: fatal: amb (fatal: ambiguous argument '_upgrade/HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
```

It appears it's not possible to remote revisions with
`<remote>/<revision>`. Instead, we fetch the upgrade remote into a named
revision and then use it.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2020-11-29 15:54:26 -08:00
Henrik Lissner
77924c8feb
Remove tab-prefix-map fix
Since we've bumped project.el in the :tools lsp module, which was the
cause of this error to begin with.
2020-11-29 15:01:44 -05:00
Henrik Lissner
c0e905c044
Rename internal variable: doom-num-cpus -> doom--num-cpus 2020-11-29 14:50:32 -05:00
Henrik Lissner
b91a1b3e7b
Extract CPU counting to doom-num-cpus function
And improves macOS support as discussed in hlissner/doom-emacs@db6a27c
2020-11-29 14:49:14 -05:00
Henrik Lissner
b49c40bbb3
Minor refactors & comment revision 2020-11-29 14:37:32 -05:00
Henrik Lissner
db6a27c37c
native-comp: use all cores instead of half 2020-11-29 14:25:12 -05:00
Rudi Grinberg
0b78fe3fbb Improve byte compilation message
When compiling standalone files such as `init.el`, instead of saying
that it belongs to module `nil nil`, say that these files are
standalone.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2020-11-28 21:44:46 -08:00
Henrik Lissner
742ff5629c
Create different compilation buffers per-project 2020-11-27 22:22:11 -05:00
Henrik Lissner
a3293e67d4
Bump :core
Fuco1/smartparens@c59bfef -> Fuco1/smartparens@7f5825d
bbatsov/projectile@d1daf27 -> bbatsov/projectile@d1cfad0
iqbalansari/restart-emacs@9aa90d3 -> iqbalansari/restart-emacs@e570749
jscheid/dtrt-indent@50c440c -> jscheid/dtrt-indent@a7ade6d
justbur/emacs-which-key@c011b26 -> justbur/emacs-which-key@ca268fd
jwiegley/use-package@4fb1f9a -> jwiegley/use-package@caa92f1
koral/gcmh@84c43a4 -> koral/gcmh@0089f9c
2020-11-27 22:22:11 -05:00
Henrik Lissner
e4563e9b02
Fix void-symbol: straight-vc-git-default-branch error
Was removed in raxod502/straight.el@a7251a3
2020-11-25 15:29:45 -05:00
Henrik Lissner
6dc84f1671
Remove backwards compatibility for native-comp
It's too much hassle to wrestle with. If you're on native comp, you
revert to hlissner/doom-emacs@c83e5e75e until you can update.

Fixes #4317 (again)
2020-11-25 14:55:26 -05:00
Henrik Lissner
90f16eaa76
Fix #4317: wrong-type-arg: number-or-marker-p many
Caused by a func-arity call on an advised function (returns the arity of
the advice, rather than the advised function itself).
2020-11-25 13:49:17 -05:00
Andrew Whatson
d3e08c5d0b Update for the latest native-compile-async API
Renamed `comp-deferred-compilation-black-list` to
`comp-deferred-compilation-deny-list`.

Removed the `late` load flag which is no longer required.

Added a check against the deny list when compiling all Elisp on the
load-path, so we don't inadvertently compile something we shouldn't.

Added compatibility shims to ease transition from older builds of
native-comp.
2020-11-25 14:17:01 +10:00
Andrew Whatson
5eab7d4414 Bump straight.el
raxod502/straight.el@0f283e2f -> raxod502/straight.el@3277e1c9
2020-11-25 14:17:01 +10:00
Henrik Lissner
ce66ac4130
Merge pull request #4285 from akirabaruah/docs
core-lib: Add docstring for add-hook-trigger!
2020-11-20 15:29:08 -05:00