Commit graph

11444 commits

Author SHA1 Message Date
mfroeh
ef9e21c90c feat(default): bind :leader "t v" to visible-mode 2022-10-29 02:48:16 +02:00
dmr
9f3012c98f
tweak(ansible): also match tasks/main.yaml
Although it's common to use the extension .yml rather than .yaml for
yaml files in ansible projects, this is not required except in like 1 or
2 cases.
2022-10-29 02:47:15 +02:00
Itai Y. Efrat
b67e83f88e docs(vertico): fix outdated consult config var name 2022-10-29 02:45:31 +02:00
Eric Dallo
8b414e6d0a
fix(lsp): stop logging project root
This is done upstream now. Also prevents double-prompting (#6877).

Ref: emacs-lsp/lsp-mode@65fb3e8d07
Close: #6877
2022-10-29 02:44:01 +02:00
Henrik Lissner
3d8f9ae5ea
fix(rest): gnutls-verify-error: defining as dynamic error
An error results if you let-bind a dynamic variable before it's defined,
so I forcibly ensure gnutls-verify-error is defined.

Fix: #6073
Close: #6525
2022-10-29 01:57:43 +02:00
Henrik Lissner
1b99805e1b
docs(debugger): add hacks, dap overview, basic usage info
Close: #6605
Co-authored-by: rittelle <rittelle@users.noreply.github.com>
2022-10-29 01:57:43 +02:00
Henrik Lissner
d39ec50bb7
fix(emacs-lisp): backport mode-name from 28+
In Emacs 28+, the mode-name in emacs-lisp-mode is "ELisp/X" (where X = d
or l depending on lexical-binding). I find this much more useful than
"Emacs-Lisp" in <=27.x or our static replacement "Elisp".
2022-10-29 01:57:43 +02:00
Henrik Lissner
a0ccb6b95b
feat(emacs-lisp,lispy): recognize ;;* outline headings
Permit `;;* ...` be recognized by imenu and outline-minor-mode (and
outline's commands). This also patches Lispy to reflect this new
configuration (if :lang emacs-lisp is active).

Close: #6732
Co-authored-by: LemonBreezes <LemonBreezes@users.noreply.github.com>
2022-10-29 01:57:43 +02:00
Henrik Lissner
6887998c23
feat(default): add C-h/C-l evil keybinds for helm
Close: #6853
Co-authored-by: BenediktBroich <BenediktBroich@users.noreply.github.com>
2022-10-29 01:57:43 +02:00
Henrik Lissner
9d4689de5f
fix(indent-guides): face init in tty Emacs
Ensure that highlight-indent-guides-auto-set-faces is called when the
active theme and frame has been initialized (particularly tricky in
daemon sessions). With this assurance, we don't need to suppress its
errors anymore.

Close: #6900
Co-authored-by: Sleepful <Sleepful@users.noreply.github.com>
2022-10-29 01:57:39 +02:00
Vincent Bernat
aa40daf5e8 bump: :ui modeline
seagle0128/doom-modeline@bed80b82d7 -> seagle0128/doom-modeline@b66d5e5006

- Fixes error with eglot 1.9 (due to rename of eglot--major-mode)
2022-10-29 00:25:50 +02:00
declantsien
b5e9f58db6
fix(org): check WAYLAND_DISPLAY for bin/org-capture
Check WAYLAND_DISPLAY for +org-capture-frame-parameters.
PGTK emacsclient also uses this logic.

Ref: masm11/emacs#13
2022-10-28 19:13:32 +02:00
Bruce D'Arcus
714aeb0629
bump: :tools biblio
emacs-citar/citar@146f2cb5a3 -> emacs-citar/citar@4a302fcc40
joostkremers/parsebib@175a1bdac1 ->  joostkremers/parsebib@1efca921cb
andras-simonyi/citeproc-el@406bd9964f -> andras-simonyi/citeproc-el@36c4ecdc48
tmalsburg/helm-bibtex@ce8c17690d -> tmalsburg/helm-bibtex@78f5931e1c

Ref: #6728
2022-10-28 18:38:40 +02:00
Bruce D'Arcus
9193ba98f7
tweak(default): bind "n b" to citar-open-notes
Also change desc to "Bibliographic notes".

Ref: #6728
2022-10-28 18:38:34 +02:00
Bruce D'Arcus
ee0e87fc74
feat(biblio): add citar-org-roam
Close: #6728
2022-10-28 18:38:06 +02:00
Henrik Lissner
ceb985673c
fix(haskell): activate lsp! conditionally
use-package evaluates :preface *before* :when, so the two lsp! hooks
would run unconditionally, causing errors and warnings when opening a
haskell-mode buffer.

*
modules/lang/haskell/config.el (haskell-literate-mode-local-vars-hook):
add lsp! to hook.
2022-10-23 02:53:59 +02:00
Henrik Lissner
912a0bc059
bump: :lang clojure
clojure-emacs/cider@b9e1cc26e2 -> clojure-emacs/cider@92c1b6de20
clojure-emacs/clj-refactor.el@f368c56c83 -> clojure-emacs/clj-refactor.el@db89b55871
clojure-emacs/clojure-mode@b6f41d7490 -> clojure-emacs/clojure-mode@414157c3e5
emacsmirror/paredit@8330a41e81 -> emacsmirror/paredit@e4a67f4f23

- emacs-cider 1.4.1->1.5.0
- clojure-mode 5.15.0->5.15.x
- clj-refactor 3.5.3->3.5.6

Ref: clojure-emacs/cider#3235
Close: #6856
Co-authored-by: socksy <socksy@users.noreply.github.com>
2022-10-23 02:46:52 +02:00
Henrik Lissner
bc2f09e74a
bump: :lang swift
emacs-lsp/lsp-sourcekit@97ff36b228 -> emacs-lsp/lsp-sourcekit@f877659bab
swift-emacs/swift-mode@0d1ef0ef18 -> swift-emacs/swift-mode@f4529efa45

- Introduces Swift 5.7 support.

Close: #6895
Co-authored-by: RoryO <RoryO@users.noreply.github.com>
2022-10-23 02:46:52 +02:00
Henrik Lissner
1961003d00
bump: :lang python
Wilfred/pyimport@a6f63cf7ed -> Wilfred/pyimport@c006a5fd0e
cybniv/poetry.el@5b9ef569d6 -> cybniv/poetry.el@5a8575bc78
cython/cython@8afd932c28 -> cython/cython@b2015596b3
emacs-lsp/lsp-pyright@c745228f39 -> emacs-lsp/lsp-pyright@2fa2c89765
necaris/conda.el@a65ed00848 -> necaris/conda.el@cb9544e8f7
pythonic-emacs/anaconda-mode@160e4e7185 -> pythonic-emacs/anaconda-mode@ca8edbaa76
wbolster/emacs-python-pytest@9bf8db38bf -> wbolster/emacs-python-pytest@33c921adaa

Ref: Wilfred/pyimport#12
Close: #6779
Co-authored-by: corrafig <corrafig@users.noreply.github.com>
2022-10-23 02:46:52 +02:00
Henrik Lissner
6ee14b4589
bump: :lang org
bastibe/org-journal@839a2e1986 -> bastibe/org-journal@1ea9e3b672
emacs-straight/org-mode@86c4635dba -> emacs-straight/org-mode@bed47b437d
emacsmirror/org-contrib@0740bd3fe6 -> emacsmirror/org-contrib@aa104c0bbc
hakimel/reveal.js@c1c4145240 -> hakimel/reveal.js@f6f657b627
https://repo.or.cz/org-contacts.git@919511eb8697 -> https://repo.or.cz/org-contacts.git@bd5093e46b1d
kaushalmodi/ox-hugo@97ff24fe0b -> kaushalmodi/ox-hugo@e532fce4a4
magit/orgit-forge@8baf1dee79 -> magit/orgit-forge@3a54569dd0
magit/orgit@b33b916915 -> magit/orgit@5036c3db58
oer/org-re-reveal@6f78a0a228 -> oer/org-re-reveal@941aa4b94f
takaxp/org-tree-slide@3faa042393 -> takaxp/org-tree-slide@d6529bc2df

- Replace orphaned emacsmirror/org-contrib@0740bd3 (which no longer
  exists) with emacsmirror/org-contrib@aa104c0.

Fix: #6881
Close: #6882
Co-authored-by: ldang0 <ldang0@users.noreply.github.com>
2022-10-23 02:46:52 +02:00
Henrik Lissner
c9cc3f8d36
bump: :tools magit
alphapapa/magit-todos@67fd80c2f1 -> alphapapa/magit-todos@c5030cc27c
magit/forge@36208c43bf -> magit/forge@ce212f8f95
magit/magit@c1fb53d3de -> magit/magit@0ef98ef518
wandersoncferreira/code-review@d38fbe5930 -> wandersoncferreira/code-review@95b36ec8e7

Fix: #6875
Fix: #6509
2022-10-23 02:46:52 +02:00
Henrik Lissner
06c810f8cf
bump: :ui treemacs
Alexander-Miller/treemacs@e4bb236bd5 -> Alexander-Miller/treemacs@76807bef3c
emacs-lsp/lsp-treemacs@f7ae97560c -> emacs-lsp/lsp-treemacs@2894e6dec5

Ref: 20765acd38 (diff-36f7ea49dcbb6f011b9faf5f012271328ac46515b4f161214001917cbc2ef6b2L1023-R1053)
Fix: emacs-lsp/lsp-treemacs#145
Ref: emacs-lsp/lsp-treemacs#142
Close: #6887
Close: #6868
Co-authored-by: Jcaw <Jcaw@users.noreply.github.com>
2022-10-23 02:46:52 +02:00
Henrik Lissner
d6da09d980
bump: :tools debugger lsp
emacs-lsp/dap-mode@5d5043f962 -> emacs-lsp/dap-mode@2879578abf
emacs-lsp/lsp-mode@68bdac0f80 -> emacs-lsp/lsp-mode@a3b3c15359
emacs-lsp/lsp-ui@d8cce7dc15 -> emacs-lsp/lsp-ui@3cd7cc6127
gagbo/consult-lsp@19606a03cf -> gagbo/consult-lsp@58b5414762
joaotavora/eglot@aeea7c719a -> joaotavora/eglot@e501275e06
tumashu/posframe@0d23bc5f7c -> tumashu/posframe@3084cb6eb3
2022-10-23 02:46:12 +02:00
Henrik Lissner
c2f5e41722
tweak(window-select): winum-auto-setup-mode-line = nil
Leave it to modeline modules, plugins, and/or the user to support this
plugin, rather than impose winum's (rather destructive) side-effects on
them all.
2022-10-23 02:30:13 +02:00
Henrik Lissner
d25ff46d46
perf(javascript): replace add-node-modules-path
The add-node-modules-path package calls `npm bin` to locate the
node_modules/.bin, and does so while invoking the user's $SHELL, which
can be very expensive depending on the user's shell configuration,
possibly adding seconds to the startup time of any JS/TS file.

To mitigate this, I replace the package with a much faster, and in-house
heuristic. Folks with more complex needs should be using direnv anyway.

Fix: #6878
2022-10-23 02:30:13 +02:00
VitalyR
4bd4b13158
bump: :lang haskell
haskell/haskell-mode@cb573c8db5 -> haskell/haskell-mode@90503413f4
emacs-lsp/lsp-haskell@7cf64944ab -> emacs-lsp/lsp-haskell@485c1148ce

Ref: haskell/haskell-mode@4010de30ec
2022-10-23 02:29:45 +02:00
Henrik Lissner
962c643bad
fix(literate,mu4e): revert recent, unintended changes
Reverts changes that snuck into 5ac2a52.

Amend: 5ac2a5258b
Ref: #6873
2022-10-07 17:33:35 +02:00
Abdelhak Bougouffa
1b1556c476
tweak(mu4e): change icon for reply flagged mails
The current config is kinda confusing, it uses the same symbol for both
forwarded/passed mails and replied mails. FontAwesome provides a nice
icon for "reply", why not use it!
2022-10-05 16:50:27 +02:00
Paul A. Patience
398ee2cd94
fix(magit): evil keybinds for magit-worktree
For some reason, the transient-append-suffix adding magit-worktree back
to magit-dispatch — after its potential replacement by
magit-gitflow-popup — was having no effect. (It does when moved into
(after! magit-gitflow), so the issue must have something to do with when
transient-append-suffix is called.) magit-worktree wasn't appearing in
the magit-dispatch popup when magit-gitflow was enabled, nor was the '*'
keybind for magit-worktree in effect outside (or inside) the popup,
unlike '%' for magit-gitflow-popup.

Replace the ineffectual transient-append-suffix with a normal and visual
mode keybind for magit-worktree in magit-mode-map (and move the
unconditionally defined keybind for magit-gitflow-popup into (after!
magit-gitflow)). Also, append the magit-gitflow-popup transient suffix
to magit-worktree instead of replacing it, so that the latter still
appears in magit-dispatch (though under the original keybind 'Z' — which
isn't really an issue, since evil-collection-magit doesn't seem to
update the keybinds of any of the other commands accessible from
magit-dispatch — but also callable with '*').
2022-10-05 15:16:54 +02:00
Antonio Ruiz
191745424b feat(workspaces): make tab-bar tabs workspace-local 2022-10-05 15:14:44 +02:00
TEC
7e50f239c4 fix(org): improve parsing of flag-only module link 2022-10-05 01:01:19 +02:00
TEC
24f98d49ec tweak(org): have doom links use path for info 2022-10-05 01:01:19 +02:00
TEC
5ac2a5258b docs: change link format 2022-10-05 01:01:19 +02:00
Henrik Lissner
58fb83c98e
fix(company): completing-read interface on C-S-s
C-S-s while company is completing shoudl bring up the results in your
completion framework of choice (ivy, helm, vertico, etc), but failed to
do so for vertico (for any completion backend besides company-capf
perhaps).
2022-10-04 02:05:02 +02:00
Haisheng
57e99650d3
fix(grammar): use languagetool in $PATH, if available 2022-10-03 18:33:28 +02:00
TEC
d3839197f1 fix(mu4e): cooperative lock file watching
Some time ago I noticed the cooperative lock file management wasn't
working as I remember. I forget what exactly I was thinking, but
basically I've poked at the code until it seems to work better.
2022-10-02 13:10:17 +02:00
Ellis Kenyő
4d24a3f1a7 feat(org): restore org-contrib packages removed upstream
org-contrib is slowly removing packages (most of which have moved or
will move to their own repos or into Org proper).

Ref: emacsmirror/org-contrib@3dd9841522
Ref: emacsmirror/org-contrib@c555d8d489
Ref: emacsmirror/org-contrib@0740bd3fe6
Close: #6740
2022-09-30 23:02:34 +02:00
TEC
c82e7455bb fix(literate): use same org install when using CLI 2022-09-30 22:52:42 +02:00
TEC
3a19152787 fix(mu4e): +mu4e/capture-msg-to-agenda with mu 1.8 2022-09-30 22:45:23 +02:00
TEC
f2d62acaad tweak(mu4e): try harder to attach files in order
In 4d9ea6853b I reacted to a either a change that I presume occurred
in org-msg at some point, or behaviour originally unnoticed, that led to
bulk-selected files being attached in reverse. Further investigation has
indicated that this isn't actually making attachment order work as
expected, just hiding the reverse behaviour from bulk-attachment. The
better approach is to keep the dired mark reversal, and change
org-msg-attach-attach to add new files to the end, not the start, of the
list of attachments.
2022-09-30 22:44:39 +02:00
TEC
30a4eb7f77 fix(mu4e): file attachment prompt arguments
There are two changes to the default optional read-file-name arguments
that should be made for the purpose of attaching files:
1. The optional MUSTMATCH argument should be set, as one can't exactly
   attach non-existent files.
2. The INITIAL argument should be set to the empty string so that if
   default-directory is customised for some reason or another that
   selecting it leads to the expected directory being selected.
   Without INITIAL or DEFAULT-FILENAME being specified, the current file
   path will be used, which is never desirable as this is simply a path
   to the message buffer.
2022-09-30 22:43:46 +02:00
Ellis Kenyő
f1e793405d fix(macos): only use trash on local hosts
Fix: #6804
2022-09-30 22:42:46 +02:00
TEC
a207a8b703 feat(mu4e): more DWIM-y mu4e entry point (=mu4e)
Replace the rather crude "don't do anything if already in a mu4e-y
buffer" behaviour with a more refined approach that tries to find the
live mu4e buffer likely of the most interest and switch to that, before
calling (mu4e) if no such buffer is found.
2022-09-30 22:40:43 +02:00
毕达哥拉斯
2c31028a56
fix(treemacs): treemacs-collapse-dirs not changing
`treemacs-collapse-dirs` cannot be changed by setting
`+treemacs-git-mode` to `extended` or `deferred`

Fix: #6850
2022-09-30 22:39:24 +02:00
Dave Lucia
04fa5fb948
fix(web): remove .sface from web mode autolist
elixir-mode can now handle .sface files from surface-ui.org

Ref: #4905
2022-09-30 22:35:07 +02:00
Henrik Lissner
07c1534ea3
fix(modeline): void-function +modeline-refresh-bars-h error
Occurs during non-interactive startup of the user's config (e.g. 'doom
doctor'), while :ui (modeline +light) is enabled.

This is a makeshift solution until I get around to finishing the +light
feature.
2022-09-26 00:47:28 +02:00
Henrik Lissner
156fade7e2
fix(emacs-lisp): set doom-module-context in eval handler
So module context is in scope of evaluated code.

Amend: 4efaf6837b
2022-09-25 17:52:07 +02:00
Henrik Lissner
29dfce32bd
fix(doom-dashboard): hide benchmark until available
The dashboard has a chance to display before doom-init-time is
calculated. To prevent the resulting type error, hide it until it is
ready.
2022-09-24 22:10:02 +02:00
Henrik Lissner
4efaf6837b
refactor: introduce doom-module-context
Where f9201eb introduced a general context system, this one introduces
one for modules, to simplify our let-bind game when interacting with
modules, and to more efficiently expose module state to modulep! (which
gets called at runtime a great deal, so its performance is important).

* lisp/doom-lib.el (doom-log): simplify macro and introduce
  doom-inhibit-log variable.
* lisp/doom-modules.el (modulep!): fix reported file path if modulep!
  fails to find the local module.
* lisp/lib/debug.el (doom-debug-variables): disable doom-inhibit-log
  when debug mode is on.

Ref: f9201eb218
2022-09-24 22:09:46 +02:00
Henrik Lissner
f9201eb218
refactor: introduce doom-context
Introduces a system to announce what execution contexts are active, so I
can react appropriately, emit more helpful logs/warnings in the case of
issues, and throw more meaningful errors.

* bin/doom: load module CLIs in the 'modules' context.
* lisp/cli/doctor.el: load package files in 'packages' context.
* lisp/doom-cli.el:
  - (doom-before-init-hook, doom-after-init-hook): trigger hooks at the
    correct time. This may increase startup load time, as the benchmark
    now times more of the startup process.
  - (doom-cli-execute, doom-cli-context-execute,
    doom-cli-context-restore, doom-cli-context-parse,
    doom-cli--output-benchmark-h, doom-cli-call, doom-cli--restart,
    doom-cli-load, run!): remove redundant context prefix in debug logs,
    it's now redundant with doom-context, which doom-log now prefixes
    them with.
* lisp/doom-lib.el (doom-log): prefix doom-context to doom-log output,
  unless it starts with :.
* lisp/doom-packages.el (package!, doom-packages--read): throw error if
  not used in a packages.el file or in the context of our package
  manager.
* lisp/doom-profiles.el (doom-profile--generate-init-vars,
  doom-profile--generate-load-modules): use modules doom-context instead
  of doom-init-time to detect startup.
* lisp/doom-start.el (doom-load-packages-incrementally-h): move function
  closer to end of doom-after-init-hook.
* lisp/doom.el:
  - (doom-before-init-hook, doom--set-initial-values-h,
    doom--begin-init-h): rename doom--set-initial-values-h to
    doom--begin-init-h and ensure it runs as late in
    doom-before-init-hook as possible, as that is the point where Doom's
    "initialization" formally begins.
  - (doom-after-init-hook): don't trigger at the end of command-line-1
    in non-interactive sessions. This will be triggered manually in
    doom-cli.el's run!.
* lisp/lib/config.el (doom/reload, doom/reload-autoloads,
  doom/reload-env): use 'reload' context for reload commands.
* modules/lang/emacs-lisp/autoload.el (+emacs-lisp-eval): use 'eval'
  context.
* modules/lang/org/config.el: remove doom-reloading-p; check for
  'reload' doom context instead.
2022-09-24 22:09:05 +02:00