Commit graph

14510 commits

Author SHA1 Message Date
Henrik Lissner
9f45561825
bin/doom: inhibit POSIX errors during postscript
Some doom commands will generate a temporary script at
~/.emacs.d/.local/.doom.sh so that it can run an arbitrary shell command
after the current invocation of bin/doom ends. Very useful for, say,
restarting the currently running doom command after a destructive
operation, like updating Doom's source code, tangling your literate
config, or for launching arbitrary programs, like a new instance of
Emacs. This is necessary because elisp lacks an execv implementation.

However, for some folks, .doom.sh wasn't executing at all. This meant:

1. Some `doom upgrade`s would upgrade Doom itself but never move on to
   the second step of the process: updating its packages.
2. Literate config users could tangle their configs on `doom sync`, but
   the actual syncing process would never happen (#3746).
3. `doom run` would do nothing.

I hadn't realized /bin/sh runs bash in POSIX mode (at least, on systems
where /bin/sh = bash, like nixOS or macOS). In POSIX mode the script
will abort the if a builtin command (like export) returns a non-zero
exit code. Since .doom.sh is basically a bunch of exports followed by an
arbitrary command, and there are some environment variables
that can trigger validation errors (like UID triggering a "read-only
variable" error), we have a problem.

Hopefully addresses #3746
2020-08-18 18:59:50 -04:00
Henrik Lissner
f3740d4766
Fix private package declaration order issues
The user's private packages.el is read first, to ensure disabled
packages are recorded as soon as possible, however, this means private
packages are recorded early into `doom-packages`, and so are built
first (and thus, before org-mode, which is later registered by the
lang/org module).

This compilation order can cause lots of issues with org packages
loading the older, built-in version of org included with Emacs, instead
of the newer org-mode.

May address #3172
2020-08-18 17:23:28 -04:00
Gerry Agbobada
71dd71d1aa
Fix evil-escape and C-r in ivy 2020-08-18 11:49:46 +02:00
Gerry Agbobada
089fe56079
Use simpler method to highlight nbsp
If it does not work on non-X builds we will fall back to the ergodis
method based on adding a font-lock class
2020-08-18 11:49:46 +02:00
Gerry Agbobada
473d41f889
Grammar 2020-08-18 11:49:46 +02:00
Gerry Agbobada
bfafcdfb0c
Set lispy-avy-keys as well 2020-08-18 11:49:45 +02:00
Gerry Agbobada
004a2c50fe
Complete readme and fix magit-status crhl keys 2020-08-18 11:49:45 +02:00
Gerry Agbobada
3ef2531356
Remove doom!-order dependency
The doom-init-modules-hook will do the work at the correct timing
2020-08-18 11:49:45 +02:00
Gerry Agbobada
911d7cb82c
Add support for bépo layout in a dedicated module
Evil is loaded too early to be able to wait for the
config.el file of a user to set the CR-rotation style variable.
2020-08-18 11:49:25 +02:00
Henrik Lissner
58af4aef56
Fix #3772 (again): void-variable comp-eln-load-path 2020-08-18 02:51:53 -04:00
Henrik Lissner
3d622101cb
Fix #3772: void-variable doom-reloading-p
This wasn't necessary in the first place. doom/reload doesn't re-read
Doom's core.
2020-08-18 02:44:03 -04:00
Henrik Lissner
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
Henrik Lissner
a2da5d7a6f
Fix void-variable comp-eln-load-path error
For users on older versions of gccemacs.
2020-08-17 21:25:34 -04:00
Henrik Lissner
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
Henrik Lissner
1c9918e61e
Ensure evil-collection doesn't load early 2020-08-17 18:00:46 -04:00
Jeetaditya Chatterjee
bfe7b55a97 doc/adding another trouble shooting step
As Ubuntu does not include mu4e with the mu package I added a step to
tell the use to install mu4e and add it to their load-path. I have also
added a find command to find the directories likely to have mu4e in them
2020-08-17 02:56:15 +01:00
Henrik Lissner
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
Henrik Lissner
9a8fc46c74
bin/doom: escape envvars in post-script
Might address #3746
2020-08-15 15:13:50 -04:00
Henrik Lissner
4ad9b764e1
tools/magit: only expand git path
On closer inspection it isn't necessary to expand the gitk and perl
executable paths, since a) gitk is a GUI application that doesn't get
called often enough (only once at a time) to warrant being optimized,
and b) magit uses it to set an envvar for git (so git itself handles
locating the executable internally -- much faster than Emacs can (esp
over TRAMP), so it only benefits us to expand magit-git-executable.
2020-08-15 12:31:59 -04:00
Henrik Lissner
10edc92bce
tools/magit: fix stringp error for missing executables 2020-08-15 12:18:26 -04:00
Henrik Lissner
5755754702
tools/magit: expand executable paths in remote repos too
Remote repos can benefit from ahead-of-time expansion of these paths
too; so Emacs doesn't have to search the remote PATH on every call.
2020-08-15 05:29:59 -04:00
Henrik Lissner
55642fc8bb
Bump :ui unicode
rolandwalker/unicode-fonts@7b88ae8 -> rolandwalker/unicode-fonts@e3942fe
2020-08-15 05:14:22 -04:00
Henrik Lissner
77f9cc53ae
magit-revision-insert-related-refs = nil 2020-08-15 05:14:21 -04:00
Henrik Lissner
e49b4a8123
tools/magit: speed up git calls in magit
But only for local repos.
2020-08-15 05:14:21 -04:00
Benoît C
e2eb42ab0e
Fix typo in :ui hydra module readme 2020-08-15 01:01:54 -04:00
Henrik Lissner
ed8dca3c69
Bump :lang ess
emacs-ess/ESS@964bf64 -> emacs-ess/ESS@3c2fb63

Fix unexpected '>' in ">" error in ESS R repl.
2020-08-14 13:35:02 -04:00
Henrik Lissner
ff90fc82e6
Normalize keymaps on evil-org-mode
Fixes an issue where evil keybinds aren't in effect on just after
activating org-mode.
2020-08-14 13:35:02 -04:00
Henrik Lissner
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
Henrik Lissner
14d9786360
Respect org-hierarchical-todo-statistics 2020-08-14 00:40:32 -04:00
Henrik Lissner
cbebbd5278
Fix #3746: bin/doom hangs after tangling config
Because +literate-tangle-h wasn't returning non-nil in interactive
sessions.
2020-08-14 00:00:36 -04:00
Henrik Lissner
9cab6a6fd9
Fix #3723: auto-revert on window/buffer switch 2020-08-13 22:49:35 -04:00
Henrik Lissner
73c95bb1ad
Optimize doom-visible-buffers 2020-08-13 22:49:35 -04:00
Henrik Lissner
d02d78c3fa
Make find-file-in-project faster in large projects 2020-08-13 17:02:25 -04:00
Henrik Lissner
6e764ade2b
Add LSP/eglot support to +cc/reload-compile-db 2020-08-13 17:02:24 -04:00
Henrik Lissner
88b1d05a4a
tools/pdf: revise readme 2020-08-13 17:02:24 -04:00
Henrik Lissner
335af41b70
Bump :ui doom
hlissner/emacs-solaire-mode@380e01c -> hlissner/emacs-solaire-mode@cd63b67
2020-08-13 17:02:24 -04:00
Henrik Lissner
38a95f7e58
Bump :term vterm
akermu/emacs-libvterm@422ffe0 -> akermu/emacs-libvterm@797357b

akermu/emacs-libvterm#373 was merged

Fixes #3683
2020-08-13 17:02:15 -04:00
Henrik Lissner
3ce18233e1
Fix untargetable treemacs window from ace-window 2020-08-13 12:49:21 -04:00
Henrik Lissner
0b349bf1c0
ui/modeline: fix constant redisplay errors
Fixes a wrong-type-argument: stringp error emitted by the buffer-id
segment in :ui (modeline +light).
2020-08-13 03:05:50 -04:00
Henrik Lissner
577e8b8102
Excluse treemacs buffer from ace-window
This allows users to jump to treemacs with ace-window, but when opening
files from treemacs with treemacs-visit-node-ace-* commands (e.g. on
oaa) it doesn't make sense to open files in the treemacs window.
2020-08-12 20:58:41 -04:00
Henrik Lissner
8bb47f96d8
cli/doctor: fix native json detection 2020-08-12 16:01:33 -04:00
Henrik Lissner
93636c862b
Merge pull request #3706 from ymarco/evil-texx
Add evil-tex package to :lang latex
2020-08-12 15:25:42 -04:00
Henrik Lissner
01da9f68fe
Merge pull request #3708 from reedspool/develop+os-tty-doc-fix
Fix typo in new os/tty module readme
2020-08-12 15:25:20 -04:00
Henrik Lissner
ed21b7d043
Merge pull request #3711 from dlesl/develop
Enable native ligature support on emacs-28/mac
2020-08-12 15:25:09 -04:00
Henrik Lissner
a8ae1e8b8b
Merge pull request #3713 from pereiragc/patch-2
Update `org-gcal` repo link
2020-08-12 15:24:57 -04:00
Henrik Lissner
35ca3543e2
Merge pull request #3725 from adamroyjones/patch-1
Updates getting_started.org following the release of Emacs 27.1
2020-08-12 15:24:49 -04:00
Henrik Lissner
11be796c9b
cli/doctor: warn if native JSON library is missing 2020-08-12 15:17:15 -04:00
Henrik Lissner
ca7a18f3c6
Bump :lang java
Groovy-Emacs-Modes/groovy-emacs-modes@cafdd98 -> Groovy-Emacs-Modes/groovy-emacs-modes@26da902
emacs-lsp/lsp-java@811760a -> emacs-lsp/lsp-java@2600162

Fixes #3737
2020-08-12 14:56:42 -04:00
Henrik Lissner
8df090fb29
Reduce git history downloaded with straight.el
When installing straight.el itself.
2020-08-12 14:56:42 -04:00
Henrik Lissner
f5ba3d9498
config/literate: revise readme 2020-08-12 02:52:45 -04:00