Commit graph

5004 commits

Author SHA1 Message Date
Henrik Lissner
db16e5c03e
Fix error if autoloads file is missing at startup
Should warn the user to run 'doom sync' if the autoloads file is
missing, but was giving a less helpful, generic error instead.
2020-11-20 14:10:29 -05:00
Henrik Lissner
4dab595ad3
Minor refactors & comment revision 2020-11-20 14:10:29 -05:00
Akira Baruah
c3001f77aa core-lib: Add docstring for add-hook-trigger! 2020-11-19 00:31:13 -08:00
Henrik Lissner
890448add5
Merge pull request #4280 from hanmertens/comp-jupyter
Prevent native compilation for emacs-jupyter
2020-11-19 00:50:35 -05:00
Henrik Lissner
e1c9145a5d
Run after-setting-font-hook after fontset config
Helps #3298
2020-11-19 00:44:16 -05:00
Henrik Lissner
03fe396eea
Move +default/{find-in,browse}-emacsd to core lib
Renamed them to:

+ doom/find-file-in-emacsd
+ doom/browse-in-emacsd
2020-11-19 00:44:16 -05:00
Han Mertens
a56f58d4ab Prevent native compilation for emacs-jupyter
Something in jupyter-channel.el does not get compiled correctly and
raises void-variable jupyter-channel errors.
2020-11-17 20:48:34 +01:00
Henrik Lissner
d21b4e643d
Merge pull request #4276 from flatwhatson/without-editor
Add with-editor.el to the compilation black-list
2020-11-16 20:22:02 -05:00
Henrik Lissner
67157a0e19
Merge pull request #4275 from flatwhatson/kill-build
Bootstrap trampolines to prevent doom build hang
2020-11-16 20:21:03 -05:00
Henrik Lissner
db66b8af31
Omit .git from projectile-find-file & ocunsel-file-jump 2020-11-16 20:10:26 -05:00
Henrik Lissner
427d38008b
Overwrite yes-or-no-p instead of advise it
+ Some snippets libraries assume this instead of the advise, causing
  errors.
+ Advising a C function may have implications when its uses are
  natively compiled.
2020-11-16 19:29:41 -05:00
Henrik Lissner
8ffc9ba429
Disable so-long if visual-line-mode is enabled
Long lines are very common in text modes where visual-line-mode is
enabled.
2020-11-16 19:29:32 -05:00
Henrik Lissner
8999719852
window-resize-pixelwise = nil
Causes crashes and freezing in some cases where window are resized too
quickly/rapidly.

May address #3868
2020-11-16 19:24:13 -05:00
Andrew Whatson
e9394c7c06 Add with-editor.el to the compilation black-list 2020-11-16 14:52:41 +10:00
Andrew Whatson
196bb04088 Bootstrap trampolines to prevent doom build hang
This is a workaround for 'doom build' hanging on native-comp Emacs when
run with an empty cache.  We're effectively automating the process of
killing 'doom build' and trying again.
2020-11-16 14:07:34 +10:00
Henrik Lissner
ed1996e6f9
Reformat map! docstring
Mention correct placement of state keyword.
2020-11-14 14:02:07 -05:00
Henrik Lissner
969e6486f6
Apply customized faces sooner 2020-11-14 13:57:34 -05:00
Henrik Lissner
472ec52481
Use global-hl-line-mode instead of hl-line
It's easier for users to remove one hook than to remove four, and Emacs
users tend to expect global-hl-line-mode, but not hl-line-mode.
2020-11-14 13:57:00 -05:00
Henrik Lissner
3ecf95ff35
Fix #4249 again
Whoops, missed the main command.
2020-11-11 01:07:52 -05:00
Henrik Lissner
fee4de8b24
Fix #4249: doom/reload when bin/doom path has spaces 2020-11-11 00:25:04 -05:00
Henrik Lissner
2c663ea5d4
Mention current theme and font in doom/info 2020-11-10 18:36:47 -05:00
Henrik Lissner
45179fbf59
Mention current frame type in doom/info 2020-11-10 18:36:47 -05:00
Henrik Lissner
92c9127b86
Bump :core
raxod502/straight.el@728ea18 -> raxod502/straight.el@0f283e2
Wilfred/helpful@1671e1d -> Wilfred/helpful@584ecc8
bbatsov/projectile@3670ebe -> bbatsov/projectile@d1daf27
justbur/emacs-which-key@ae59b7e -> justbur/emacs-which-key@c011b26

Fix #4231
2020-11-07 00:20:07 -05:00
Henrik Lissner
03b0a834dd
Fix #4214: support setting doom-theme to 'default
People who like the default theme actually exist.
2020-11-04 19:49:35 -05:00
Henrik Lissner
611fdade09
Add doom/copy-buffer-contents command
To make it easier for beginners to copy content from logs or backtrace
windows.
2020-11-04 19:41:57 -05:00
Henrik Lissner
86722ee67e
Minor refactors & reformatting 2020-11-03 16:16:12 -05:00
Henrik Lissner
9f261788b9
Fix #4206: hl-line reactivates on exiting visual mode 2020-11-03 16:14:24 -05:00
Henrik Lissner
3e0432959a
Set user-init-file in sandbox 2020-11-02 21:03:28 -05:00
Henrik Lissner
65be6923e7
Fix wrong-number-of-args on 'doom install'
Only affects Emacs 26.x users, because `file-name-quote`s signature
changed in 27.1.
2020-11-02 17:02:10 -05:00
Henrik Lissner
74737dad37
package!: add :build, :post-build support
Straight recipes now support :build & :post-build
2020-11-02 16:33:06 -05:00
Henrik Lissner
7ec623593e
Fix magit in remote repos
And backport executable-find from Emacs 27.1 so we don't have to do
these version checks every time we use it.
2020-11-02 14:43:12 -05:00
Henrik Lissner
a25ad3fa7c
Restore line numbers in artist-mode #2742
The issue was fixed upstream, but won't be available until Emacs 28.
2020-10-30 19:09:31 -04:00
Henrik Lissner
61ec1d9698
mac-right-option-modifier = none
Then right option can be used for special symbols and left option can be
used as meta.
2020-10-29 02:36:59 -04:00
Henrik Lissner
dbeaa8e238
Remove emacs-version check in autoloads file
Now that the autoload file's path is namespaced by version, this check
is no longer necessary.
2020-10-29 02:36:59 -04:00
Henrik Lissner
9120b075e0
Merge pull request #4145 from gagbo/patch-6
Clarify doom-store-put docstring
2020-10-29 02:07:17 -04:00
Henrik Lissner
fd6984f2e7
Sort which-key labels alphabetically
Fixes #4177
2020-10-29 01:42:04 -04:00
Henrik Lissner
9ce9c6838e
Add emacs version to autoloads file path
Prevents stale byte-code across Emacs versions.

Relevant to #4172
2020-10-29 01:42:04 -04:00
Henrik Lissner
d784509abf
Fix #4172: different build path per Emacs version
To prevent byte-code incompatibilities.

We'll need to make 'doom purge' smarter about purging builds for other
versions of Emacs.
2020-10-29 01:41:25 -04:00
Henrik Lissner
fe37a590cc
Set doom--initial-load-path in sandbox
Prevents loaded packages miscount (e.g. -1) in dashboard/log in sandbox
instance.

This occurs because the benchmark line uses a simple heuristic to
determine the loaded packages: length of load-path minus the length of
doom--initial-load-path (to save on more expensive counting methods).
However, in the sandbox, load-path is pre-populated with all packages
right from the get-go, so doom--initial-load-path will be incorrect.
2020-10-26 05:52:30 -04:00
Henrik Lissner
9e1ac0c0be
Reduce active message-log-max; scale in debug mode
8kb of log isn't really necessary. We'll scale it up when debug mode is
on, instead.
2020-10-26 05:51:12 -04:00
Henrik Lissner
0192221981
Fix 'doom build' skipping straight 2020-10-24 16:52:33 -04:00
Gerry Agbobada
89019c66a2
Clarify doom-store-put docstring
Explicitely states that a `nil` TTL means "no expiration"

Make it clearer that TTL is an offset to current-time, and not a timestamp in seconds
2020-10-23 14:40:10 +02:00
Henrik Lissner
a6959b75f3
Minor refactors & reformatting 2020-10-22 16:11:31 -04:00
Henrik Lissner
9bbdacc79b
Prefix tramp auto-save files
Makes them easier to see and reduces the possibility of filename
conflicts with autosaves of local files.
2020-10-22 14:51:49 -04:00
Henrik Lissner
f92f4aab97
Fix file-handlers for daemon sessions 2020-10-21 11:18:47 -04:00
Henrik Lissner
8892be8372
Correct comments on auto-save #4096 2020-10-20 23:32:00 -04:00
Henrik Lissner
9b4fd806bb
Simplify doom/info output 2020-10-20 23:21:11 -04:00
Henrik Lissner
b4e66bffeb
More sensible backup/auto-save defaults
More sensible defaults.

And save tramp backups locally, to prevent excessive remote writes.
2020-10-20 23:12:16 -04:00
George Xanthakis
4d24d7548a
Print diff url in terminal in case emacs is in a remote server (#4105)
* Print diff url in terminal in case emacs is in a remote server

Closes #2936

* Correct print! call

Co-authored-by: Henrik Lissner <henrik@lissner.net>
2020-10-18 19:17:39 -04:00
Henrik Lissner
24cc09895d
Enable auto-save by default
Offers a backup in case of crashes or power loss.

Fixes #4096
2020-10-18 19:08:08 -04:00