Commit graph

15825 commits

Author SHA1 Message Date
Henrik Lissner
a1fdc77dc1 lang/org: fail gracefully on org-roam-mode failure
Otherwise throws an error immediately when opening any org file, if
org-roam isn't properly set up from the get go.
2021-05-09 20:50:23 -04:00
Henrik Lissner
d44c57f01a Add :defer support to add-hook! macro
See add-hook's DEPTH argument (replaces APPEND in Emacs 27+).
2021-05-09 13:06:24 -04:00
Henrik Lissner
10f9ec44a0 Revert "Convert custom-{,theme-}set-faces! to functions"
This reverts commit cab8f03a51.

Urg, they did have to be macros, otherwise arguments are evaluated
immediately. Note to self, stop committing things after midnight.

Fixes #5015
Closes #5016
2021-05-09 12:25:19 -04:00
Gerry Agbobada
804504025c
fix(:input layout bepo): Ensure eshell rotation goes after evil-collection maps
Fixes #4847
2021-05-09 12:30:45 +02:00
Henrik Lissner
a4a64b9c6c Revise bug report form
Minor corrections and clarification.
2021-05-09 01:33:24 -04:00
Henrik Lissner
8f3b798620 Fix #5000: ensure 'doom always has precedence
'doom is a pseudo theme used to store internal faces and variables, and
must have the highest precedence (like the 'user theme, but without the
risk of being written to custom-file).
2021-05-09 01:23:42 -04:00
Henrik Lissner
cab8f03a51 Convert custom-{,theme-}set-faces! to functions
They didn't need to be macros.
2021-05-09 01:19:35 -04:00
Henrik Lissner
9ef708796c Remove JasonEtco/is-sponsor-label-action workflow
It'll break once Doom moves to its own github org.
2021-05-09 00:49:29 -04:00
Henrik Lissner
7332a6f798 Refactor doom--recentf-file-truename-fn 2021-05-09 00:20:52 -04:00
Henrik Lissner
62d2f27510 Fix references to comp-eln-load-path 2021-05-08 18:56:40 -04:00
Grazfather
efb8943568
:lang clojure: Add some links and details 2021-05-08 16:52:27 -04:00
Henrik Lissner
27e9c756ea Fix references to comp-async-cu-done-hook
Was renamed upstream to native-comp-async-cu-done-functions at some
point.
2021-05-08 14:57:42 -04:00
Henrik Lissner
856f8b6aeb Fix #4995: adapt to renamed comp-* symbols
Adapting to native-comp changes on Emacs HEAD.
2021-05-08 14:46:51 -04:00
Henrik Lissner
f3c496d295 Fix #5009: custom-{,theme-}set-faces\! at startup
An erroneous check preventing these macros from taking effect any other
time but before your doom-theme has loaded.
2021-05-08 13:53:55 -04:00
Henrik Lissner
1c549f21d6 Fix custom-set-faces\! & custom-theme-set-faces\! 2021-05-08 02:32:26 -04:00
Henrik Lissner
5a9171ed5c Fix "About can't be blank" issue form error 2021-05-08 01:14:47 -04:00
Henrik Lissner
f2b397ba52 Fix bug_report issue form 2021-05-08 01:12:23 -04:00
Henrik Lissner
9cc7e3ac7d Replace bug_report issue template with form 2021-05-08 01:09:18 -04:00
Henrik Lissner
92a378c8d0 Fix contact_links config 2021-05-08 00:50:31 -04:00
Henrik Lissner
ddd1ae43f8 Reconfigure & expand github workflows 2021-05-08 00:42:16 -04:00
Henrik Lissner
6e541b01e5 Add issue contact links
And disable blank issues. Viva la templates!
2021-05-08 00:42:16 -04:00
Henrik Lissner
f989bf60f0 Rewrite how themes are loaded, and fonts reloaded
A follow-up to 578dddd, which wasn't sufficient.

Fixes #5000 (again)
2021-05-08 00:42:06 -04:00
Henrik Lissner
113dcd74cf Refactor UTF-8 config
After studying set-language-environment, it seems to embody all these
lines. And without without it, non-English glyph rendering is very
slow (see https://emacs-china.org/t/org-mode/16918).

This may have other implications, however, so further testing is needed.
2021-05-08 00:41:41 -04:00
William Vaughn
056880e1df notmuch: rm dead code 2021-05-07 19:25:31 -07:00
Orlando Osorio
0fb8136b3b Add counsel-jq to ivy-prescient-sort-commands 2021-05-07 21:18:56 -04:00
Henrik Lissner
195ad0fec6 Fix #5003: rethink +magit/quit
Changes +magit/quit to behave more like canonical
magit-mode-bury-buffer, but after burying/killing the last magit buffer
for the current repo, kill all the other buried ones too.

Also binds Q in magit to kill all magit buffers for the current repo.
2021-05-07 14:17:04 -04:00
Henrik Lissner
61376a2ca0 Fix #5001: disable formatter in org-msg-edit-mode 2021-05-07 14:17:04 -04:00
Henrik Lissner
578dddd3fe Fix #5000: bad load order for auxiliary fonts
doom-unicode-font, doom-variable-pitch-font, and the fontset settings
were loaded in the wrong order (before the theme, but should be after).
This means the psuedo 'doom' theme that stores these settings are being
loaded too early.
2021-05-07 14:17:04 -04:00
Henrik Lissner
b2c4e0f168 editor/format: disable formatter for rustic-mode
rustic provides its own internal formatter. Using that instead of
format-all is more reliable for the moment.
2021-05-07 02:37:47 -04:00
Henrik Lissner
075e66f4d7 Fix #4991: writeroom-mode + mixed-pitch not remapping fonts
mixed-pitch-mode was toggled *before* text-scale-mode was.  They both
preform face remapping, but use the same strategy to accomplish it, so
the less complex mode should go first. In this case, that's text-scale.
2021-05-07 02:32:51 -04:00
Henrik Lissner
9561089ff5 Remove redundant comp-deferred-compilation setting
Already set in early-init.el, and deferred compilation is auto-disabled
in noninteractive sessions, so only matters to clients that load
early-init.el.
2021-05-07 02:32:51 -04:00
Henrik Lissner
ea389b8eb2 Restore file-name-handler-alist a little sooner
Too late, and we risk read encoding issues when loading compressed elisp
files.
2021-05-07 02:32:51 -04:00
William Vaughn
76b9ab18dd notmuch: add links about sending mail 2021-05-06 22:35:17 -07:00
William Vaughn
2bf97211ff notmuch: add lieer links 2021-05-06 22:34:20 -07:00
William Vaughn
4edbe3bd65 notmuch readme: add keymaps features subheaing 2021-05-06 22:27:08 -07:00
William Vaughn
dd950f0985 add "an" to description 2021-05-06 22:25:48 -07:00
Henrik Lissner
e2a11d24fd core: minor refactors and comment revisions 2021-05-06 18:36:32 -04:00
Henrik Lissner
3b9aee6868 Strip /sudo:...@ from recent file paths
Also:
+ Refactors recentf config in general, revises/expands its code
  comments, and uses :custom to set file variable (a new convention I'm
  trying out).
+ recentf-auto-cleanup = 300 in daemon sessions, since the old strategy
  of "cleanup on kill-emacs-hook" isn't so great for daemon users.
2021-05-06 18:36:32 -04:00
Henrik Lissner
280bae0331 Eagerly trigger doom-first-* hooks early in daemon sessions
No need to lazy load as much in daemon sessions.
2021-05-06 18:36:32 -04:00
Henrik Lissner
b12a0c02b3 Bump :emacs undo
ideasman42/emacs-undo-fu@f4db4c9 -> ideasman42/emacs-undo-fu@e0ad06b
ideasman42/emacs-undo-fu-session@a038914 -> ideasman42/emacs-undo-fu-session@243d93b

Also refactors module to conform to conventions.
2021-05-06 18:36:32 -04:00
Henrik Lissner
9831642a02 Fix #4993: shorten long file names for caches
Emacs generates long file names for auto-save and backup files.
undo-fu-session and tramp are two more big offenders. This fix SHA1s
their file names so they never exceed 40 characters.

Will also affect any package that uses make-backup-file-name-1
directly (like undo-tree).
2021-05-06 18:36:32 -04:00
Henrik Lissner
a98c2ece63 Fix #4992: set-fontset-font call when unavailable
Missed a guard on a set-fontset-font call in d4dec3565's refactors.
2021-05-06 18:36:32 -04:00
Henrik Lissner
735efd0c85
Merge pull request #4986 from visika/patch-1
[docs] Add non-evil keybinding to zen
2021-05-06 16:01:14 -04:00
Henrik Lissner
26a0244f03
Merge pull request #4990 from Wetlize/patch-1
lang/emacs-lisp: Replace sym with var in +emacs-lisp-log-unsafe-local-variables-a
2021-05-06 13:06:03 -04:00
Wetlize
0a2ed4d346
lang/emacs-lisp: Replace sym with var in +emacs-lisp-log-unsafe-local-variables-a
Otherwise it will make Emacs to error with (void-variable sym) error when
checking the variable.
2021-05-06 13:04:15 +03:00
Henrik Lissner
48322af020 doom upgrade: delete straight if recipe changed
By deleting straight, the latest pinned version will be reinstalled on
the second part of the 'doom upgrade' process.

This is a clumsy fix for a catch 22 where using straight to update
straight would break due to backwards incompatibilities (see #4950).
This will do while we wait for the CLI rewrite.
2021-05-06 04:27:33 -04:00
Henrik Lissner
d4dec35658 Improve unicode, emoji, & symbol font support
+ Adds doom-emoji-fallback-font-families
+ Adds doom-symbol-fallback-font-families
+ Gives doom-unicode-font higher precedence (and sets it to nil by
  default, since Emacs defaults to symbola already).
+ Store custom face settings in psuedo theme, rather than crowding the
  user theme (which may be immortalized to custom-file, which we want to
  avoid).
+ Now, after-setting-font-hook is guaranteed to fire after *all* fonts
  are set, giving you a more reliable interface to add your own
  font(set) modifications.

More testing is needed to ensure the patched fonts our ligatures modules
don't conflict with this change.
2021-05-06 04:27:33 -04:00
Henrik Lissner
b63441387b lang/emacs-lisp: don't use risky-local-variable-p
It's hardcoded to return t for symbols that end in any of '-command',
'-frame-alist', '-function', '-functions', '-hook', '-hooks', '-form',
'-forms', '-map', '-map-alist', '-mode-alist', '-program', or
'-predicate' -- which I think is excessive next to a safety check.

I'll trust that: if the user marks X as safe, and it isn't *explicitly*
marked risky, and it destroys the universe, then it's their fault, not
mine, not Emacs'.
2021-05-06 04:27:33 -04:00
Henrik Lissner
52fba3fa60 Fix #4977: inhibit xterm-set-window-title in GUI emacs 2021-05-06 04:27:33 -04:00
Henrik Lissner
5d7526a224 doom-info: rename distro->system & add window-system 2021-05-06 04:27:33 -04:00