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
Henrik Lissner
fee4de8b24
Fix #4249 : doom/reload when bin/doom path has spaces
2020-11-11 00:25:04 -05:00
Henrik Lissner
2c663ea5d4
Mention current theme and font in doom/info
2020-11-10 18:36:47 -05:00
Henrik Lissner
45179fbf59
Mention current frame type in doom/info
2020-11-10 18:36:47 -05:00
Henrik Lissner
92c9127b86
Bump :core
...
raxod502/straight.el@728ea18 -> raxod502/straight.el@0f283e2
Wilfred/helpful@1671e1d -> Wilfred/helpful@584ecc8
bbatsov/projectile@3670ebe -> bbatsov/projectile@d1daf27
justbur/emacs-which-key@ae59b7e -> justbur/emacs-which-key@c011b26
Fix #4231
2020-11-07 00:20:07 -05:00
Henrik Lissner
03b0a834dd
Fix #4214 : support setting doom-theme to 'default
...
People who like the default theme actually exist.
2020-11-04 19:49:35 -05:00
Henrik Lissner
611fdade09
Add doom/copy-buffer-contents command
...
To make it easier for beginners to copy content from logs or backtrace
windows.
2020-11-04 19:41:57 -05:00
Henrik Lissner
86722ee67e
Minor refactors & reformatting
2020-11-03 16:16:12 -05:00
Henrik Lissner
9f261788b9
Fix #4206 : hl-line reactivates on exiting visual mode
2020-11-03 16:14:24 -05:00
Henrik Lissner
3e0432959a
Set user-init-file in sandbox
2020-11-02 21:03:28 -05:00
Henrik Lissner
65be6923e7
Fix wrong-number-of-args on 'doom install'
...
Only affects Emacs 26.x users, because `file-name-quote`s signature
changed in 27.1.
2020-11-02 17:02:10 -05:00
Henrik Lissner
74737dad37
package!: add :build, :post-build support
...
Straight recipes now support :build & :post-build
2020-11-02 16:33:06 -05:00
Henrik Lissner
7ec623593e
Fix magit in remote repos
...
And backport executable-find from Emacs 27.1 so we don't have to do
these version checks every time we use it.
2020-11-02 14:43:12 -05:00
Henrik Lissner
a25ad3fa7c
Restore line numbers in artist-mode #2742
...
The issue was fixed upstream, but won't be available until Emacs 28.
2020-10-30 19:09:31 -04:00
Henrik Lissner
61ec1d9698
mac-right-option-modifier = none
...
Then right option can be used for special symbols and left option can be
used as meta.
2020-10-29 02:36:59 -04:00