Commit graph

5085 commits

Author SHA1 Message Date
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
Henrik Lissner
db16e5c03e
Fix error if autoloads file is missing at startup
Should warn the user to run 'doom sync' if the autoloads file is
missing, but was giving a less helpful, generic error instead.
2020-11-20 14:10:29 -05:00
Henrik Lissner
4dab595ad3
Minor refactors & comment revision 2020-11-20 14:10:29 -05:00
Akira Baruah
c3001f77aa core-lib: Add docstring for add-hook-trigger! 2020-11-19 00:31:13 -08:00
Henrik Lissner
890448add5
Merge pull request #4280 from hanmertens/comp-jupyter
Prevent native compilation for emacs-jupyter
2020-11-19 00:50:35 -05:00
Henrik Lissner
e1c9145a5d
Run after-setting-font-hook after fontset config
Helps #3298
2020-11-19 00:44:16 -05:00
Henrik Lissner
03fe396eea
Move +default/{find-in,browse}-emacsd to core lib
Renamed them to:

+ doom/find-file-in-emacsd
+ doom/browse-in-emacsd
2020-11-19 00:44:16 -05:00
Han Mertens
a56f58d4ab Prevent native compilation for emacs-jupyter
Something in jupyter-channel.el does not get compiled correctly and
raises void-variable jupyter-channel errors.
2020-11-17 20:48:34 +01:00
Henrik Lissner
d21b4e643d
Merge pull request #4276 from flatwhatson/without-editor
Add with-editor.el to the compilation black-list
2020-11-16 20:22:02 -05:00
Henrik Lissner
67157a0e19
Merge pull request #4275 from flatwhatson/kill-build
Bootstrap trampolines to prevent doom build hang
2020-11-16 20:21:03 -05:00
Henrik Lissner
db66b8af31
Omit .git from projectile-find-file & ocunsel-file-jump 2020-11-16 20:10:26 -05:00
Henrik Lissner
427d38008b
Overwrite yes-or-no-p instead of advise it
+ Some snippets libraries assume this instead of the advise, causing
  errors.
+ Advising a C function may have implications when its uses are
  natively compiled.
2020-11-16 19:29:41 -05:00
Henrik Lissner
8ffc9ba429
Disable so-long if visual-line-mode is enabled
Long lines are very common in text modes where visual-line-mode is
enabled.
2020-11-16 19:29:32 -05:00
Henrik Lissner
8999719852
window-resize-pixelwise = nil
Causes crashes and freezing in some cases where window are resized too
quickly/rapidly.

May address #3868
2020-11-16 19:24:13 -05:00
Andrew Whatson
e9394c7c06 Add with-editor.el to the compilation black-list 2020-11-16 14:52:41 +10:00
Andrew Whatson
196bb04088 Bootstrap trampolines to prevent doom build hang
This is a workaround for 'doom build' hanging on native-comp Emacs when
run with an empty cache.  We're effectively automating the process of
killing 'doom build' and trying again.
2020-11-16 14:07:34 +10:00
Henrik Lissner
ed1996e6f9
Reformat map! docstring
Mention correct placement of state keyword.
2020-11-14 14:02:07 -05:00
Henrik Lissner
969e6486f6
Apply customized faces sooner 2020-11-14 13:57:34 -05:00
Henrik Lissner
472ec52481
Use global-hl-line-mode instead of hl-line
It's easier for users to remove one hook than to remove four, and Emacs
users tend to expect global-hl-line-mode, but not hl-line-mode.
2020-11-14 13:57:00 -05:00
Henrik Lissner
3ecf95ff35
Fix #4249 again
Whoops, missed the main command.
2020-11-11 01:07:52 -05:00