Commit Graph

4574 Commits

Author SHA1 Message Date
ed25ab76f9 Respect comp-eln-load-path in comp async process
Thanks to @SwiftLawnGnome in hlissner/doom-emacs@295f806
2020-08-18 00:46:41 -04:00
a2da5d7a6f Fix void-variable comp-eln-load-path error
For users on older versions of gccemacs.
2020-08-17 21:25:34 -04:00
295f8066be Update gccemacs support
To add support for "update 11", see:
http://akrl.sdf.org/gccemacs.html#org4b11ea1

Also:
+ Move eln files to ~/.emacs.d/.local/cache/eln
+ Disable comp-deferred-compilation by default (now that it is
  enabled-by-default upstream).
2020-08-17 21:24:14 -04:00
8fa5b9406c Fix #3763: add let-alist to straight-built-in-pseudo-packages
It is included with Emacs 26 and onwards, and was recently removed from
emacs-mirror anyhow.
2020-08-16 21:14:50 -04:00
9a8fc46c74 bin/doom: escape envvars in post-script
Might address #3746
2020-08-15 15:13:50 -04:00
702fb6e95d Fix #3747: make enlargen/maximize workspace-aware
Otherwise, doom/enlargen-window and doom/window-maximize-buffer could
restore the window configuration of other workspaces.
2020-08-14 02:13:37 -04:00
9cab6a6fd9 Fix #3723: auto-revert on window/buffer switch 2020-08-13 22:49:35 -04:00
73c95bb1ad Optimize doom-visible-buffers 2020-08-13 22:49:35 -04:00
8bb47f96d8 cli/doctor: fix native json detection 2020-08-12 16:01:33 -04:00
11be796c9b cli/doctor: warn if native JSON library is missing 2020-08-12 15:17:15 -04:00
8df090fb29 Reduce git history downloaded with straight.el
When installing straight.el itself.
2020-08-12 14:56:42 -04:00
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