Commit Graph

4543 Commits

Author SHA1 Message Date
4ac16743b9 Use long SHA1 for rainbow-delimiters 2020-04-30 01:52:24 -04:00
45cdfb1258 Bump :core
spudlyo/clipetty@7ee3f9c -> spudlyo/clipetty@01b3904
bbatsov/projectile@eec569d -> bbatsov/projectile@5cd261d
noctuid/general.el@14ad4c8 -> noctuid/general.el@42e3803

We're also transitioning from abbreviated SHA1 hashes to full ones,
because underlying git machinery in future updates of straight will
require it (e.g. to obtain shallow clones of pinned packages).
2020-04-29 23:48:21 -04:00
eb995adada Minor refactors & comment revision 2020-04-29 23:48:21 -04:00
cb6dd300b4 Add comment wrt load-theme not disabling previous themes 2020-04-29 23:48:21 -04:00
936124e546 Introduce if! & when! macros
The condition argument is evaluated at compile/expansion time, and its
body expanded directly.
2020-04-29 23:48:21 -04:00
d12752324a Introduce letf! convenience macro
A more succinct cl-letf, which allows for local functions and macros.
2020-04-29 23:48:21 -04:00
c3a84f0fbf Reorganize core-lib
Group like macros together.
2020-04-29 20:45:29 -04:00
64b799c68e Load subr-x & cl-lib a little earlier 2020-04-29 20:31:40 -04:00
1442e694fb Move core helpers to core-lib
Since they can be generally useful.
2020-04-29 20:31:40 -04:00
f61fa50336 Null-byte delimit envvar file lines
This prevents issues with multi-line envvar values.
2020-04-29 19:39:35 -04:00
079b748217 Fix conflict between private & default autodefs
e.g. If you had a ~/.doom.d/modules/tools/lsp/autoload.el that defined
an lsp! autodef, it would be indexed and included in
~/.emacs.d/.local/autoloads.el *before* the lsp! autodef from the
original ~/.emacs.d/modules/tools/lsp/autoload.el.
2020-04-29 18:32:25 -04:00
5bc86de760 Remove goto-addr
It's not essential and is redundant with `gf` and find-file-at-point,
which already understand URLs at point.
2020-04-29 03:47:20 -04:00
ae152a5924 Cache project root earlier
So users can still change it with setq-hook! or their own hooks.
2020-04-29 03:41:32 -04:00
9788b1235c Disable jit-lock
Deferred & stealth font-locking has produced a fair number of obscure
bugs. It's just not worth the trouble.
2020-04-29 02:17:42 -04:00
c96bbf909c Fix #2992: remove buffer-or-name check in switch-buffer executor 2020-04-29 00:33:54 -04:00
aca1599a81 Only resolve package :local-repo if relative path exists
This allows you to specify a :local-repo relative to the directory your
packages.el is in. If it doesn't exist, it'll assume you meant a
directory in ~/.emacs.d/.local/straight/repos
2020-04-29 00:29:17 -04:00
6e8487e1d4 Fix #2992: wrong-type-arg stringp on switch-to-buffer
(switch-to-buffer nil) should switch to other-buffer, as per its
documentation, which was not respected by our switch-buffer hook
mechanism.
2020-04-28 15:10:59 -04:00
9acba6b269 Speed up project root detection by resolving it less often
Projectile can consume a lot of cycles, especially in indirect buffers
or because of project-root-sensitive path segments in the modeline. This
experimental fix should spare you that heartache.
2020-04-27 17:27:32 -04:00
c601382a55 Add EMACS28+ const 2020-04-27 02:12:47 -04:00
c1127a5bde Rewrite move/copy/delete file commands
To use rename-file, copy-file and delete-file, so these commands can
enjoy the benefits of any plugins that have advised these, like org-roam
does for rename-file.
2020-04-27 01:51:18 -04:00
993888cd2b Enable hl-line-mode in special-mode buffers 2020-04-25 21:23:13 -04:00
efee633311 Reduce wasteful after! blocks in map! expansion
When there are no labels, it produces empty after! forms, which do
nothing.
2020-04-25 00:48:20 -04:00
ddc7bf782c Activate jit-lock
Improves scrolling and buffer performance by deferring font-locking
until you're idle. YMMV
2020-04-25 00:18:30 -04:00
efee551709 doctor: check for fc-list (fontconfig)
Instead of find-font, which the doc doesn't even use.
2020-04-24 22:00:17 -04:00
c51b2d42ad Remove require! macro
This was meant for unit tests, which is where it will be moved to.
2020-04-24 02:35:41 -04:00
38f957557a Remove def-package macros
They've been deprecated for some time now.
2020-04-24 02:35:29 -04:00
08d0eae595 Merge pull request #2925 from rushsteve1/develop
doom/upgrade use -y CLI flag
2020-04-24 00:11:48 -04:00
06d5d5e6c0 General refactors, reformatting & comment revision 2020-04-23 23:56:17 -04:00
916ef0fbbe Rename unmap! to undefine-key!
unmap! gives the false impression that it is related or similar to map!,
but it isn't.
2020-04-23 23:56:17 -04:00
e24b8cd1d1 Slim down from lang/data
+ Removes jsonnet, graphql, dhall & protobuf packages from the module.
+ Removes +data-vagrant-mode project minor mode (unused).

I'm phasing out the lang/data module. Its original purpose was to be for
data interchange formats, like JSON, but over time it became the dumping
ground for languages with no clear defining feature.

These packages are being removed first because their configs are
non-existent or so trivial that it offers nothing a user couldn't set up
themselves.

graphql and jsonnet might get heir own modules (or jsonnet might be
gated behind a flag in the :lang json module), but for now they gotta
go.

fixup! Remove jsonnet, graphql, dhall & protobuf modes from lang/data
2020-04-23 23:56:17 -04:00
2d766cfa0c Remove :lang assembly
This module is too trivial, and provides nothing that the user couldn't
install themselves.
2020-04-23 23:28:50 -04:00
0837c56430 Fix loading new themes from face-remapped buffers
E.g. If mixed-pitch-mode is enabled and you change themes, then open a
new frame, the theme is messed up.

Also refactor load-theme advice into one.
2020-04-23 03:33:08 -04:00
0c3e11766c Fix #2949: swap TLS 1.3 & 1.2 in gnutls-algorithm-priority 2020-04-21 17:08:34 -04:00
a36afa5136 Remove redundant dtrt-indent mapping
It was upstreamed in jscheid/dtrt-indent#51
2020-04-19 20:34:47 -04:00
c963038308 Use straight master branch by default
raxod502/straight.el@d28fd41930 causes breakage; preventing users from
installing Doom. It's about time we stop living dangerously and use
straight's master branch instead.

Addresses #2937
2020-04-19 14:47:05 -04:00
6e4ec07ad5 Fix void-variable global-whitespace-mode
In case whitespace-mode hasn't been loaded yet.
2020-04-17 21:50:05 -04:00
8ba2c8e4ad Merge pull request #2915 from Keating950/develop
Respect global whitespace mode config if set
2020-04-17 21:49:07 -04:00
54041ad827 simplifying boolean expression 2020-04-17 21:33:45 -04:00
1a07ee8269 simplified expression; fixed typo 2020-04-17 19:59:54 -04:00
d3c2e4829b Disable byte-compile-dynamic for autoloads files
Its deprecated and more trouble than its worth.
2020-04-17 15:47:05 -04:00
5c340a670c doom/upgrade use -y CLI flag
When using the internal doom/upgrade command to upgrade using the CLI
tool, do so with the -y flag.

This is admittedly a temporary solution, but without it the CLI tool
will prompt for confirmation, which cannot easily or obviously be given
while inside Emacs.
A better solution would be to somehow integrate the prompt so that it
appears in the minibuffer as normal Emacs prompts do. But for now this
at least fixes doom/upgrade.
2020-04-17 13:16:53 -04:00
778652bfd6 Fix void-function doom-try-hook
This snuck into a recent commit, but the function hasn't been renamed
yet.
2020-04-17 03:20:38 -04:00
dbada02e14 Bump :core
bbatsov/projectile@56e18fc -> bbatsov/projectile@eec569d
domtronn/all-the-icons.el@f6cbb51 -> domtronn/all-the-icons.el@0b74fc3
jscheid/dtrt-indent@1569b71 -> jscheid/dtrt-indent@9163cd9

Fixes #2860
2020-04-16 20:13:43 -04:00
8535318cf4 Update docstring 2020-04-16 19:05:23 -04:00
3be5692c77 Respect global whitespace mode config, if set 2020-04-16 19:00:23 -04:00
f532019b1f Restore file-name-handler-alist non-destructively
And in reverse order, so new rules correctly shadow old ones.
2020-04-16 18:17:36 -04:00
07350731ad Update comment re:soft line wrapping 2020-04-15 18:22:59 -04:00
9e5dd51ca4 doom env: ignore SSH_TTY 2020-04-15 14:20:00 -04:00
7a4ad7d343 Disable blink-cursor-mode again #2903
New issues with blinking cursors surfaced (see comments), so I am
reverting the second half of be412c8630.
2020-04-15 14:20:00 -04:00
46b99567de Make soft-wrapping the default in text modes 2020-04-15 13:12:10 -04:00