Commit graph

5085 commits

Author SHA1 Message Date
Henrik Lissner
ffeca3c7fd Bump :core
domtronn/all-the-icons.el@d3f9949 -> domtronn/all-the-icons.el@facbde4
raxod502/straight.el@7ca94a7 -> raxod502/straight.el@0d9813a

Fixes 'fatal: dumb http transport does not support shallow capabilities'
error when cloning certain packages from certain git servers (like nov
and paredit).
2021-06-04 01:44:41 -04:00
Henrik Lissner
19203a91a3 Unset :weight, :slant, :width on font faces
Setting a face's `:font` attribute implicitly sets a host of other faces
attributes (:family, :foundry, :width, :weight, :height, and :slant),
which is problematic in places where these faces are used in tandem with
other faces, like how EWW renders bold elements with both
variable-pitch+bold faces, with the expectation that their attributes
would cascade properly, but not so if variable-pitch sets :weight or
:slant.
2021-06-04 01:35:59 -04:00
Bror Bisgaard Winther
3759de8b00
Remove doom update and replace with doom sync -u 2021-06-03 16:17:17 +02:00
Henrik Lissner
72c3a79132 Ensure *-local-vars-hook runs on hack-local-variables-hook
Not sure why I removed this in cd88f65, but it ruins the original
purpose of these hooks -- to run after local variables have been set.
2021-06-02 23:12:38 -04:00
Henrik Lissner
617ab847c6 Revert ed5c7a21d
Because straight don't read a package's original recipe when installed
through emacsmirror.
2021-06-02 19:37:09 -04:00
Henrik Lissner
ed5c7a21d7 Prioritize emacs-mirror over melpa/elpa/etc
We can't be certain where MELPA/ELPA packages come from, but
occasionally, their hosted on unstable servers (savannah) or git servers
with certain features disabled (as is the case for paredit's not
allowing shallow clones).

Trust in emacsmirror, and we can be more certain the package is coming
from github.

This may trigger a rebuild of your packages!
2021-06-02 18:31:55 -04:00
Henrik Lissner
1a5f4afd0d Reduce minimum required git to 2.23
Thanks to raxod502/straight.el@7ca94a7, which was included in 3329448bd.
This in particular reduces the burden for Ubuntu users.

Relevant to #5088, #5096
2021-06-01 16:08:17 -04:00
Henrik Lissner
3329448bd5 Bump :core
Fuco1/smartparens@25f4d6d -> Fuco1/smartparens@911cc89
bbatsov/projectile@35c6f98 -> bbatsov/projectile@5e6fdab
domtronn/all-the-icons.el@d711dc1 -> domtronn/all-the-icons.el@d3f9949
emacs-straight/project@ef2d487 -> emacs-straight/project@4072f35
justbur/emacs-which-key@5fb3030 -> justbur/emacs-which-key@fc29864
raxod502/straight.el@e46292d -> raxod502/straight.el@7ca94a7
2021-06-01 16:07:46 -04:00
Henrik Lissner
a3df5bfa3e cli/packages: count commits between pins 2021-05-29 13:01:52 -04:00
Henrik Lissner
a0174b7638 gcmh-high-cons-threshold = 16mb
Reverts 86fd6c621 which increased gcmh-high-cons-threshold from Doom's
16mb default to its upstream default (of 1gb). This was an experiment.
In theory, the user should idle enough that it would GC enough to stave
off freezes/stuttering/paging, but in practice, either users did not
idle enough or the GC didn't clean up enough when given the opportunity.
The result: terrible stuttering and freezing after long periods of use.

Back to 16mb gang.
2021-05-29 12:50:28 -04:00
Henrik Lissner
0d9b4a7da0 Trigger doom-switch-buffer-hook on kill-current-buffer
Fixes the dashboard not loading when killing a file opened at
startup, i.e. `emacs FILE1` and landing in *doom*.
2021-05-28 16:26:25 -04:00
Henrik Lissner
a600e5949b cli/env: blacklist TERMCAP envvar
May be the result of recent "Not a termcap device" error reports.
2021-05-28 13:39:14 -04:00
Henrik Lissner
d99a102a6b rainbow-delimiters-max-face-count = 4 2021-05-26 16:19:07 -04:00
Henrik Lissner
4563f13ef9 Reduce verbosity of first-time install 2021-05-25 14:17:00 -04:00
Henrik Lissner
b0741336d1 Throw error if git < 2.28
To prevent issues like #5096.
2021-05-25 14:16:38 -04:00
Henrik Lissner
f604ce6d01 Minor refactors & reformatting 2021-05-25 10:35:21 -04:00
Henrik Lissner
7b5baf319b Fix #5093: git version doctor check on macOS
git version's output is formatted differently on macOS (because of
course it is), so I use a more flexible check.
2021-05-25 10:35:21 -04:00
Henrik Lissner
df3c221c73 cli: don't repeat "Executing..." line on restart 2021-05-24 17:32:46 -04:00
Henrik Lissner
592116cece cli/doctor: add git and git 2.28 check
Also:
+ Refactors hard dependency checks
+ Improve warnings for 26.x and 28.x users

Mentioned in #5088
2021-05-24 14:54:33 -04:00
Henrik Lissner
ab1000c8d0 Fix #5088: failure to install straight.el 2021-05-24 14:33:12 -04:00
Henrik Lissner
7864082c30
Merge pull request #5079 from jgrey4296/develop
define-localleader-key's featurep -> featurep!
2021-05-24 13:49:07 -04:00
Henrik Lissner
6321b3a249 straight: clone --single-branch by default
And compute autoload prefixes; which assist the describe-* (and
helpful-*) libraries.
2021-05-24 13:34:24 -04:00
Henrik Lissner
e5b52e2a50 Remove "fix" for projectile + $HOME git repos
There are legitimate reasons why a user would want to treat $HOME as a
project. 'doom doctor' now complains about this case in greater detail.
I'll leave it to users to deal with this edge case.
2021-05-23 22:09:07 -04:00
Henrik Lissner
3ba364ae10 Minor refactoring across the board 2021-05-23 22:09:07 -04:00
Henrik Lissner
a8e57438dc Refactor doom-{path,file,dir,glob}
Breaking change: doom-glob would formerly return a string (if only one
match) or a list. Now it always returns a list.
2021-05-23 21:49:02 -04:00
Henrik Lissner
13f316e645 Fix packages evading native-compilation
(featurep 'nativecomp) will never return t.
2021-05-23 21:49:02 -04:00
Henrik Lissner
4b5cf7d46f bin/doom: polish output
Reduces the amount of "noise" included in bin/doom's output.

Also fixes an issue where warnings during autoloads generation would
sneak into Doom's autoloads file, producing weird void-variable errors,
like

  (void-variable . rainbow-delimiters:)
  (void-variable . diredfl:)
  (void-variable . company:)
2021-05-23 21:49:02 -04:00
Henrik Lissner
e297ca4bfe Bump :core
bbatsov/projectile@513228f -> bbatsov/projectile@35c6f98
domtronn/all-the-icons.el@7a12258 -> domtronn/all-the-icons.el@d711dc1
raxod502/straight.el@253d7db -> raxod502/straight.el@e46292d
2021-05-22 20:03:30 -04:00
Henrik Lissner
5aea22ec31 Prevent custom from writing font settings to custom.el
Otherwise it tries to write unreadable forms to custom-file, causing
invalid-read errors at startup.
2021-05-22 16:01:01 -04:00
Henrik Lissner
2a2969f3e0 org-roam-verbose = t
Its output is helpful. Let's not silence it.

But prevent output during incremental loading from hijacking the
minibuffer (likely the original reason org-roam-verbose was disabled).
2021-05-21 23:13:09 -04:00
John Grey
37df4b4ff4 define-localleader-key's featurep -> featurep! 2021-05-22 02:35:10 +01:00
Henrik Lissner
fe9d45bcf5 Add/Fix doom/{discourse,issue-tracker,report-bug}
Updated their URLs
2021-05-20 21:09:32 -04:00
Henrik Lissner
0196875d9c Remove redundant projectile-ignored-projects entries
/tmp and ~/.emacs.d/.local are already covered by our
projectile-ignored-project-function (doom-project-ignored-p).
2021-05-17 23:35:55 -04:00
Henrik Lissner
6fdaaf3ae6 Revert 3b0f23792 "Distinguish C-m from RET"
Unpredictably hijacks C-m in some cases, which is unacceptable. A better
solution is needed.
2021-05-17 22:33:22 -04:00
Henrik Lissner
1e9870e13a Refactor bin/doom
So innocuous CLI command return values don't break the post-script
written to /tmp/doom.sh.
2021-05-17 22:29:50 -04:00
Henrik Lissner
b237de5619 Fix <C-m> shadowing keypad return 2021-05-17 18:40:59 -04:00
Henrik Lissner
7c273ad173 Remove hard dependency on sp-point-in-* predicates 2021-05-16 21:22:06 -04:00
Henrik Lissner
060636966f Document :depth in add-hook! docstring 2021-05-16 21:19:30 -04:00
Henrik Lissner
fa8f73d9ed Revert b80b338b3
Causes a regression where output was written into /tmp/doom.sh,
producing errors like:

  /tmp//doom.sh: string 4: $'\E[32m✓': command not found

I'll revert this until I have a better solution.
2021-05-16 18:32:22 -04:00
Henrik Lissner
3b0f23792d Distinguish C-m from RET
But you must bind keys to "<C-m>" or [C-m] to target it.
2021-05-16 14:44:53 -04:00
Henrik Lissner
b80b338b3c doom--print: return message on success
More in line with `message's signature.
2021-05-16 14:22:06 -04:00
Henrik Lissner
69beabe287 Fix #5060: don't hash relative backup file paths
Also refactors undo-fu-session's make-hashed-file-path advise to use
make-backup-file-name-1.
2021-05-16 14:02:34 -04:00
Henrik Lissner
62c231efe6 Bump rainbow-delimiters
Fanael/rainbow-delimiters@f43d48a -> Fanael/rainbow-delimiters@d576e66

Fixes #5059: contains fix for 'void-variable . rainbow-delimiters:'
error.
2021-05-16 14:02:34 -04:00
Henrik Lissner
dee20c7585 Remove define-obsolete-*-alias fix
Packages have had enough time to catch up. Also, with 9d3742c0d these
fixes are no longer effective for packages.

Closes #4534
2021-05-15 14:09:08 -04:00
Henrik Lissner
fb89327ff2 Revert to straight's original bytecomp behavior
Half-reverts 628f0a9, which forced straight to byte-compile packages in
another Emacs session, which produced failures for packages that didn't
properly load their compile-time dependencies (e.g. macro calls).

But now, I realize that _not_ failing in those cases is worse and
produces odd byte-code issues like #1657 or invalid-function ((date
date)) errors. This doesn't guarantee a fix, but at least takes the ball
out of Doom's court, and gracefully fails to uncompiled packages, rather
than incorrect bytecode.
2021-05-15 14:09:08 -04:00
Henrik Lissner
9e5ba5fd6c Don't suppress user-error errors
Refactor doom-run-hooks warning.
2021-05-15 14:09:08 -04:00
Henrik Lissner
ff3c9777e7 Bump :tools debugger lsp
emacs-lsp/dap-mode@ae395aa -> emacs-lsp/dap-mode@49af1b8
emacs-lsp/helm-lsp@74a02f8 -> emacs-lsp/helm-lsp@c2c6974
emacs-lsp/lsp-ivy@515e597 -> emacs-lsp/lsp-ivy@4dcb635
emacs-lsp/lsp-mode@eda51c2 -> emacs-lsp/lsp-mode@3dc87f6
emacs-lsp/lsp-ui@1dbea9f -> emacs-lsp/lsp-ui@efae00e
emacs-straight/project@388ffdf -> emacs-straight/project@ef2d487
joaotavora/eglot@f930a09 -> joaotavora/eglot@b06589b
realgud/realgud-trepan-ni@6e38cf8 -> realgud/realgud-trepan-ni@0ec088e
realgud/realgud@f73c039 -> realgud/realgud@34557f8
tumashu/posframe@fff21cc -> tumashu/posframe@739d8fd
2021-05-15 14:08:21 -04:00
Henrik Lissner
6d2c6b44fa Refactor comp-effective-async-max-jobs advice
We only need this magic in CLI sessions. It's better to only use half
the CPUs in interactive sessions (if the user has enabled
comp-deferred-compilation for some reason).

Fixes #5042
2021-05-12 14:52:00 -04:00
Henrik Lissner
ce11a98b70 Alias native-comp-* on any Emacs 28+ build
Because boundp checks are too fallible as a guard.
2021-05-12 01:22:07 -04:00
Hyunggyu Jang
fef242aa34 Fix bin/doom compile error introduced by e2a11d24fd
With a commit of e2a11d24fd, when it comes to
`doom compile`, modules aren't loaded anymore, which corrupts the compiling process.

What I did is just adding the necessity parts for the doom's byte compiler.
2021-05-12 14:08:51 +09:00