Commit graph

5085 commits

Author SHA1 Message Date
Henrik Lissner
f7b786f72e
Reduce projectile cache limit
fd/ripgrep are pretty fast, so be a little more aggressive when cleaning
up the projectile cache.
2020-08-01 15:19:59 -04:00
Henrik Lissner
d597663d63
Discover projects on switch-project
Rather than when projectile-mode is started up.

Also clean up 404'ed projects on quit.
2020-07-31 16:01:55 -04:00
Henrik Lissner
c3ac295f7d
Remove Icon^M from projectile-globally-ignored-files
Can break file indexing over TRAMP.
2020-07-31 16:01:16 -04:00
Henrik Lissner
351e7036d9
doom-cleanup-project-cache-h: do nothing if caching is disabled 2020-07-31 16:00:52 -04:00
Henrik Lissner
0c47a03491
Fix #3655: evil-collection-vterm hangs native comp
Co-authored-by: flatwhatson <flatwhatson@users.noreply.github.com>
2020-07-31 01:51:48 -04:00
Henrik Lissner
092480152e
Fix #3650: void-variable tab-prefix-map
Seems like some OSes' package managers are serving up a build of Emacs
where it doesn't define `tab-prefix-map`, but uses it (or another
package uses it--honestly, it difficult to tell. I can't reproduce this,
but I've gotten reports of it on Arch and Ubuntu).

It'll likely go away on its own, so I'll remove this after a year or
something.
2020-07-30 18:57:53 -04:00
Henrik Lissner
9c1a356ada
Update help keybinds in 'doom install' postamble 2020-07-28 20:08:32 -04:00
Compro-Prasad
d1c2a4446a
[UI] Set prompt to readonly in comint buffers
Comint buffers like *Python*, *shell*, etc. will benifit from this
change as the prompt wont be deletable.
2020-07-28 20:48:30 +05:30
Henrik Lissner
57c0863854
Fix aggressive native recompilation of packages
On `doom sync`
2020-07-28 01:48:09 -04:00
Henrik Lissner
b9b987e1ab
Optimize straight build step
Constant `(require 'comp nil t)` checks are quite slow on systems where the library isn't available, so only do it once.
2020-07-28 01:34:33 -04:00
Andrew Whatson
d8af5c3cad Support native compilation of packages 2020-07-28 15:25:34 +10:00
Henrik Lissner
ccfaf3f464
Move auto-mode-alist fallbacks to bottom
So they don't override auto-mode-alist entries added by packages, like
direnv's .envrc entry.
2020-07-26 18:26:33 -04:00
Henrik Lissner
6ca9e0e2f1
Fix #3632: wrong-number-of-args on setq-local
Emacs 27.0.90 made setq-local variadic. I've backported this in core-lib
for Emacs <27 users. However, there are users who install Emacs
27.0.50...
2020-07-26 14:12:07 -04:00
Henrik Lissner
e71b7fc705
Revise comments in core.el 2020-07-25 17:52:55 -04:00
Henrik Lissner
2441d28ad1
Fix wrong-number-of-args error from cmd!! macro 2020-07-24 18:17:43 -04:00
Henrik Lissner
bcc1b84e76
Increase so-long threshold for softwrapped text modes 2020-07-24 02:29:03 -04:00
Henrik Lissner
9ec5428441
Set core.autocrlf = true in repos on Windows #2637
Line encoding issues can plague repos with dirty worktree prompts
updating packages or "Local variables entry is missing the suffix"
errors when installing them.
2020-07-24 01:49:59 -04:00
Paul A. Patience
a282730ce9 Fix typos and reword docstrings 2020-07-23 07:35:31 -04:00
Henrik Lissner
da1030985d
Minor refactors & reformatting 2020-07-23 01:26:03 -04:00
Henrik Lissner
f3c9a0775e
Load custom-file #3485 2020-07-22 19:18:23 -04:00
Henrik Lissner
1dc7cbcacc
Merge pull request #3485 from peterhoeg/fix_custom
core: use custom.el instead of config.el for custom-file
2020-07-22 19:17:14 -04:00
Henrik Lissner
fee16ed73f
Bump :core
justbur/emacs-which-key@8f2427a -> justbur/emacs-which-key@3642c11
jwiegley/use-package@bfc5ecd -> jwiegley/use-package@7d92536
raxod502/straight.el@621ab2c -> raxod502/straight.el@fc077dd
2020-07-22 18:14:58 -04:00
Henrik Lissner
9073a5d402
Fix #3610: revert changes to cmd!! macro
Half-reverts e6c88e4384
2020-07-22 17:09:38 -04:00
Peter Hoeg
9cead32108 core: use custom.el instead of config.el for custom-file 2020-07-22 17:17:05 +08:00
Henrik Lissner
4205f1bbea
Fix #3591: wrong-type-arg stringp from projectile 2020-07-19 16:45:45 -04:00
Henrik Lissner
6b4af6d544
Remove unused package API functions
We'll see no changes to this API until the CLI rewrite is done, so
remove these unused and unfinished function definitions.
2020-07-17 23:22:48 -04:00
Henrik Lissner
523e945a3a
Fix #3215: ripgrep reporting error code 2 on Windows
Closes #3512
2020-07-17 19:24:26 -04:00
Henrik Lissner
c348b51e5f
Fix typo regression from 8e83a8e84 2020-07-13 17:14:57 -04:00
Henrik Lissner
cf39d7ed59
Fix #3532: file API wouldn't work with TRAMP 2020-07-13 17:14:12 -04:00
Henrik Lissner
8e83a8e842
Fix #3491: void-function doom-set-jump-h 2020-07-13 17:10:30 -04:00
Henrik Lissner
1cec7bf8be
Bump :core
bbatsov/projectile@95bcc7d -> bbatsov/projectile@bbcf781
justbur/emacs-which-key@8b49ae9 -> justbur/emacs-which-key@8f2427a
jwiegley/use-package@2b8f8a3 -> jwiegley/use-package@bfc5ecd
raxod502/straight.el@59c92dd -> raxod502/straight.el@621ab2c
2020-07-12 22:48:47 -04:00
Henrik Lissner
46d6d0b586
Use symbol-at-point instead of xref w/ eglot
Otherwise doom-thing-at-point-or-region will return nil, causing
"Nothing under point" warnings when using lookup commands.
2020-06-29 15:12:30 -04:00
Henrik Lissner
00ebbafb96
Fix #3455: wrong-number-of-args on executable-find call
executable-find's second argument was added in Emacs 27, so 26 users
would suffer this error.

Closes #3460
2020-06-25 15:27:26 -04:00
Henrik Lissner
d034bc2004
Fix #3425: eagerly resolve path to fd executable
This ensures that the correct binary is found, even if you're remoting
onto a system where `fd` is named `fdfind`.
2020-06-24 19:49:08 -04:00
Saál Germán Gutiérrez Calderón
3c7b64c5b0 Enable projectile-locate-dominating-file on tramp 2020-06-22 11:37:11 -05:00
Henrik Lissner
aeba2116c7
Fix #3401: doom/help-search returning no results 2020-06-19 15:50:13 -04:00
Gerry Agbobada
32f9070614
Filter out 'eglot backend from doom-thing-at-point
Context : https://github.com/joaotavora/eglot/issues/503

Fixes a bug where having eglot enabled in a buffer will make `SPC *` search the whole project for literally `LSP Identifier at point.`
2020-06-18 23:59:33 +02:00
Henrik Lissner
1878a08814
Bump :core
raxod502/straight.el@ffaad60 -> raxod502/straight.el@59c92dd
jwiegley/use-package@d2640fe -> jwiegley/use-package@2b8f8a3

Reverts 33cd837
Fixes #3406
2020-06-18 15:33:03 -04:00
Henrik Lissner
33cd8e7380
Fix #3406: max-lisp-eval-depth on startup
Due to version conflicts between the built-in seq library and the one
installed from upstream.

Revert once raxod502/straight.el#537 is resolved.
2020-06-18 14:56:30 -04:00
Henrik Lissner
4e193dbbd3
Bump :core
raxod502/straight.el@09cfa1b -> raxod502/straight.el@ffaad60
bbatsov/projectile@7e552b6 -> bbatsov/projectile@95bcc7d
2020-06-17 14:34:52 -04:00
Henrik Lissner
67c5de0313
Change :around advice to :override 2020-06-13 17:13:38 -04:00
Henrik Lissner
002bf84f45
doom-load-envvars-file: only affect default state
Some plugins (like envrc-mode) make process-environment, exec-path and
shell-file-name buffer-local. Running `M-x doom/reload` or
`doom-load-envvars-file` should affect their global values, and not
their buffer local ones.
2020-06-13 17:01:34 -04:00
Henrik Lissner
10f5916298
Only use projectile-generic-command
Rather than the 7 different commands for indexing the project's files.

This also fixes an issue with #3377, where changes to
`projectile-globally-ignored-directories` weren't seen unless they were
done at startup, before projectile loads.
2020-06-13 17:01:09 -04:00
Henrik Lissner
64de099aad
Merge pull request #3377 from wedens/fd-ignore-dirs
Make `fd` respect `projectile-globally-ignored-directories`
2020-06-13 16:35:41 -04:00
Henrik Lissner
1d709e30be
custom-file = ~/.doom.d/config.el
custom-file is now set to your private config.el, because users may want
to be able to see what Customize is storing (and where) front and
center. Storing it away in ~/.emacs.d/.local makes it harder to notice.

Also, have enable-command (and disable-command) save their data to
custom-file instead of ~/.emacs.d (see #3379).

Fixes #3379
2020-06-13 16:21:43 -04:00
wedens
79f62a6d3e make fd respect projectile-globally-ignored-directories 2020-06-13 23:31:12 +07:00
Henrik Lissner
298ef7a93b
Merge pull request #3356 from leoalekseyev/develop-stable-20200608
Fix #3348
2020-06-12 17:02:01 -04:00
Henrik Lissner
9edd4f26f3
Only crawl autoloads from module once
If you have a private module with the same name as a built-in module,
doom-module-load-path returns two entries for that module, causing our
autoloads scanner to scan it twice.
2020-06-11 04:49:31 -04:00
Leo Alekseyev
dbb48b7360 Changing add-hook in :config of use-package to :hook 2020-06-10 23:23:17 -07:00
Leo Alekseyev
9f5ae41037 This fixes https://github.com/hlissner/doom-emacs/issues/3348
I am not sure what the setting + removing hook code in use-package!
winner was trying to accomplish, but it was breaking winner-redo
functionality. This patch fixes the issue.
2020-06-10 20:38:39 -07:00