Commit Graph

4963 Commits

Author SHA1 Message Date
d9739a2d10 Fix #3727: 'doom: command not found' error on 'doom upgrade' 2020-08-11 14:26:49 -04:00
050ac73789 Prevent illegal envvars causing bash syntax errors 2020-08-10 23:07:21 -04:00
85b5103cd9 Fix #3717: command = super, option = meta 2020-08-10 19:36:05 -04:00
eb9cb0c6e9 Fix org version conflicts due to literate config #3649
Tangling would load org libraries. If org hasn't been installed yet,
this means the older version is loaded, later interfering with the
installation and byte-compilation of the new package, causing down the
road.
2020-08-09 01:50:42 -04:00
8bbac4bfb3 Minor refactors 2020-08-08 03:06:26 -04:00
157bc61d63 Fix kill-current-buffer prompting to save survivor buffers
This advice doesn't kill (real) buffers if they're visible in another
window, but would prompt you about unsaved buffers even if it wasn't
destined to be killed. Now it only prompts you if the buffer will be
killed.
2020-08-08 02:59:59 -04:00
e54bbb7d1e Remove redundant visible-cursor setting
This was moved to the os/tty module.
2020-08-08 02:59:39 -04:00
d2bc2ff44b config/literate: improve tangling algorithm
- Tangling no longer adds temp files to recentf (#3685)
- If :tangle yes is used, the result is no longer tangled to
  /tmp/config.org.*.el
- In interactive sessions the org buffer is no longer interfered with
  when tangling (by scrolling up to the top of the page, or undoing
  overlays/markers).
- Tangling no longer triggers formatters (or any save/write hooks).
- Appease byte-compiler sama, complaining about free variables.
2020-08-08 02:57:04 -04:00
0a4841b247 Add :os tty module
- Moves clipetty to its own, opt-in module (#2671, #3195, #3498)
- Fix cursor shape changing between evil states (#1994)
- Moves `xterm-mouse-mode` and `visible-cursor` config out of core.
2020-08-07 23:44:39 -04:00
673ab37dac Make function column in profiler report wider
Default was 50 for cpu and 55 for memory; much too small for the stacks
we deal with.
2020-08-07 20:15:14 -04:00
eb323bdbb7 Merge pull request #3703 from Janfel/patch-1
Fix deduplication in add-load-path!
2020-08-07 19:12:27 -04:00
7bec0e3518 Fix doom/help-search-load-path & doom/help-search-loaded-files
When counsel-rg-base-command is a string, instead of a list.
2020-08-07 18:56:57 -04:00
3760ceb048 Fix deduplication in add-load-path!
Currently, `add-load-path!` doesn’t check for duplicates in `load-path`, because `cl-pushnew` tests for equality with `eql`. This changes the predicate to `string=`, fixing the bug.
2020-08-07 18:28:36 +02:00
29489aad34 Remove 'doom update'
This command is commonly mistaken for 'doom upgrade'. No longer!
2020-08-06 22:24:41 -04:00
b5706c5793 Fix inverted on/off message from doom-debug-mode 2020-08-06 00:22:40 -04:00
6f2471cda7 Bind ZX -> Save then kill current buffer
Since bury-buffer is already on SPC b z, and isn't a common operation in
day to day Emacs use.

Other useful keybinds:
  ZZ      -> Save then kill current window
  zx      -> kill current buffer (prompts if unsaved)
  SPC b z -> bury buffer
  zn      -> (operator) narrow buffer
  zN      -> widen narrowed buffer
2020-08-05 20:58:29 -04:00
9a5175dd0e Fix savehist compression & persist marks
+ Fixes: doom-unpropertize-kill-ring-h ran too late to affect the value
  of kill-ring that gets saved.
+ Adds: now persist mark-ring and global-mark-ring (doesn't affect evil
  users)
2020-08-05 16:21:40 -04:00
dc489d24e7 bidi-inhibit-bpa = t
Speeds up redisplay a little, but possible at the expense of folks who
use Emacs for RTL languages.
2020-08-04 14:58:13 -04:00
9f84bc334b Forward file-missing errors from within autoloads
If a load call occurs within the autoloads file and throws a
file-missing error, it would be misleading to say 'doom sync' will fix
it, so forward the real error!
2020-08-04 07:34:16 -04:00
7638bd3968 Revert 439999cb6
I had incorrectly assumed tramp-own-remote-path would prepend the remote
system's PATH to tramp's exec-path, but it does not, it prepends your
local machine's PATH onto it. tramp-default-remote-path was what I was
looking for and it is already in tramp-remote-path by default.

If tramp can't find a program on the remote it's because either the
remote doesn't support getconf (which tramp uses to scrape the remote
PATH), or your PATH on the remote has been incorrectly configured.
2020-08-03 20:29:41 -04:00
6e702a435a Warn when :ensure t is used
When package.el isn't initialized.
2020-08-03 19:11:15 -04:00
439999cb66 Add tramp-own-remote-path to tramp-remote-path
Makes tramp consider the remote's PATH when searching for executables.
2020-08-03 15:01:11 -04:00
e2855db2a6 Refactor doom-highlight-non-default-indentation-h
And revise its docstring.
2020-08-02 22:55:15 -04:00
1406a45750 Fix indentation highlights in built-in libraries
Doom highlights incorrect indentation (i.e. tabs if indent-tabs-mode =
nil, spaces if indent-tabs-mode = t). This used to be disabled in
read-only buffers (e.g. built-in libraries), making style conflicts hard
to see. No more! Now you can see the mess for yourself!
2020-08-02 22:48:35 -04:00
a9bd4965bf Improve error handling in doom-first-*-hook
This should at least report what function invoked the error.
doom-first-input-hook was especially problematic because it runs on
pre-command-hook, which Emacs is very protective of. It will smother
errors that arise from it and auto-remove the offending hook. This
self-correction is nice for avoiding a broken Emacs, but it makes it
tough to debug those issues.
2020-08-02 18:41:21 -04:00
c7513e4135 Fix #3390: only execute local-vars hooks once 2020-08-02 16:29:46 -04:00
7dab38deea Add -A/-R switches to 'doom env'
Two new convenience switches for generating envvar files:

  doom env -A x
  doom env -R x

Is equivalent to

  doom env -a x -r .
  doom env -r x -a .
2020-08-01 15:23:10 -04:00
68507e1eac Load straight in doom/bump* commands
Prevents errors about missing straight functions/variables.
2020-08-01 15:20:32 -04:00
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
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
c3ac295f7d Remove Icon^M from projectile-globally-ignored-files
Can break file indexing over TRAMP.
2020-07-31 16:01:16 -04:00
351e7036d9 doom-cleanup-project-cache-h: do nothing if caching is disabled 2020-07-31 16:00:52 -04:00
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
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
9c1a356ada Update help keybinds in 'doom install' postamble 2020-07-28 20:08:32 -04:00
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
57c0863854 Fix aggressive native recompilation of packages
On `doom sync`
2020-07-28 01:48:09 -04:00
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
d8af5c3cad Support native compilation of packages 2020-07-28 15:25:34 +10:00
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
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
e71b7fc705 Revise comments in core.el 2020-07-25 17:52:55 -04:00
2441d28ad1 Fix wrong-number-of-args error from cmd!! macro 2020-07-24 18:17:43 -04:00
bcc1b84e76 Increase so-long threshold for softwrapped text modes 2020-07-24 02:29:03 -04:00
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
a282730ce9 Fix typos and reword docstrings 2020-07-23 07:35:31 -04:00
da1030985d Minor refactors & reformatting 2020-07-23 01:26:03 -04:00
f3c9a0775e Load custom-file #3485 2020-07-22 19:18:23 -04:00
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
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