Commit Graph

4817 Commits

Author SHA1 Message Date
b90e001ca0 Merge pull request #4448 from hoyon/patch-1
Add `--exclude .git` to fd in `projectile-generic-command`
2021-01-03 18:44:55 -05:00
157f654f98 Merge pull request #4456 from RBckmnn/Fix_doom/bump-package
Fix interactive call of doom/bump-package
2021-01-03 18:44:06 -05:00
2c51be5b2c Respect the :ignore property for packages installed as dependencies (#4497)
* Respect the :ignore property for packages installed as dependencies

* Fix indentation

Co-authored-by: Henrik Lissner <accounts@v0.io>
2021-01-03 18:42:57 -05:00
22b24d397f Merge pull request #4494 from gilbertw1/fix-better-jumper-persp-leak
Bump better-jumper. Fixes #2826
2021-01-03 18:41:54 -05:00
c987794884 Fix #4478: backport exec-path function from 27.1 2021-01-03 17:40:33 -05:00
ded4532cb6 Bump better-jumper
gilbertw1/better-jumper@e3a6546 ->
gilbertw1/better-jumper@fe548d2

Fixes #2826
2020-12-30 16:18:33 -05:00
ae5cb5b957 Always prioritize custom-theme-directory
Over plugins/built-in themes.
2020-12-29 00:52:12 -05:00
1f3530da6f Remove gh from excluded packages for autoloads
Fixed upstream.
2020-12-23 15:34:15 -05:00
712d6a7c40 Fix interactive call of doom/bump-package
The function expects 'package' to be a symbol instead of a string.
2020-12-20 17:37:29 +01:00
3967d6001b Comment/docstring revision 2020-12-18 16:10:06 -05:00
0f2bb647eb Rewrite "large file" detection
Adds a doom-inhibit-large-file-detection letvar for disabling it in
some contexts.
2020-12-18 16:08:22 -05:00
2253e7f467 Add --exclude .git to fd in projectile-generic-command 2020-12-17 22:57:17 +00:00
aba28824a0 Fail gracefully on files with no large-file-size-alist entry 2020-12-15 17:03:40 -05:00
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
8c397902bc Fix #4432: comp-deferred-compilation-{black,deny}-list 2020-12-14 16:48:14 -05:00
9490d42cd3 Comment revision 2020-12-14 15:48:29 -05:00
d69d245778 Remove sp-escape-quotes-after-insert hack
Was fixed upstream at some point.
2020-12-13 19:48:43 -05:00
04b29c70d2 doom/escape: change this-command only if interactive 2020-12-13 19:48:32 -05:00
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
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
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
97d8de81fe Remove defunct straight-fix-org setting
It was removed upstream.
2020-12-12 15:56:36 -05:00
6075e6f143 Refactor initialization of package state 2020-12-12 15:56:36 -05:00
6f5cde1386 Merge pull request #4414 from nbfalcon/bugfix/evil-ex-smartparens
Enable `smartparens' for `evil'
2020-12-12 13:03:31 -05:00
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
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
4281a772b1 Revise core lib docstrings for clarity 2020-12-11 17:38:59 -05:00
10f1b8040a Remove extraneous newline in doom/help-packages output 2020-12-11 17:38:18 -05:00
8edabbecfa Add kbd! alias for general-simulate-key macro 2020-12-11 16:59:47 -05:00
3c8a2a655f Fix envvar file encoding for Windows users 2020-12-11 15:50:02 -05:00
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
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
96d7e50f3e Distinguish <C-i> from "C-i" 2020-12-11 15:50:02 -05:00
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
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
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
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
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
d88e0795b6 Allow eldoc after doom/escape or evil state change 2020-12-02 17:58:10 -05:00
b5e948054c Refactor & reformat core.el
Backport a bit of core.el from our CLI rewrite.
2020-12-02 17:58:09 -05:00
b7f6532e4f Fix startup hooks not running in vanilla sandbox 2020-12-01 18:16:12 -05:00
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
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
affd076d53 Minor refactors & reformatting 2020-12-01 13:53:46 -05:00
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
cd88f6528e Refactor MODE-local-var-hook trigger 2020-11-30 23:35:03 -05:00
b426e21ef1 Refactor doom-num-cpus
Adds error handling.
2020-11-30 23:35:03 -05:00
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
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
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