Commit graph

16413 commits

Author SHA1 Message Date
Henrik Lissner
06392a723f refactor: rename orig-fn arg in advice to fn
A minor tweak to our naming conventions for the first argument of an
:around advice.
2021-08-04 01:53:12 -04:00
Henrik Lissner
12732be155 feat: don't delay when opening auto-saved files
If a file has auto-saved data (see auto-save-default), after-find-file
will stop the world for 1 second to tell you about it. Very annoying.
Just log it to *Messages* and open the file immediately.
2021-08-04 01:53:12 -04:00
Ralf Beckmann
0df8d78bd7 docs(mu4e): explain how to fetch/sync mail in other ways
Add explanation on how to use other backends that are neither mbsync
nor offlineimap.
2021-08-03 23:04:38 -04:00
Ralf Beckmann
2fa7bee91f docs(mu4e): remove reference to non-existing variable
The variable +mu4e-mu4e-mail-path is not present in the codebase.
2021-08-03 23:04:38 -04:00
Ralf Beckmann
451afea47b docs(mu4e): clarify impact of user-full-name
The variable is not really required. It seems to be only used by mu4e
to determine the contents of the FROM field when composing mail.
2021-08-03 23:04:38 -04:00
Henrik Lissner
77f78f0df3 revert: Fix #5215: mix snippets with completion candidates
The sorting of these two backends are counter-intuitive in this
configuration, but I don't want to place the snippets in front of the
more meaningful capf results as suggested in #5215. A better solution is
needed, but for the time being this will do.

Fix #5262
Ref #5215
Revert ba716d69f0
2021-08-03 23:02:11 -04:00
Henrik Lissner
ab7517c2d9 dev: run triage workflows twice daily instead
They were occasionally rate limited at once-an-hour.

Ref 3227573350
2021-08-03 23:00:43 -04:00
Henrik Lissner
c2c6a64118 fix: doom/reload now regenerates the envvar file
Removes doom/reload-env, now that it is redundant.
2021-08-03 23:00:43 -04:00
Henrik Lissner
3beff3133f dev: refactor, fix, and add rules to commit linter
- Conform commit linter to 50/72 rule
- Add linter rule for body line length; excludes the footer and lines
  with long URLs.
- Add linter rule for validating scopes are in lexical order.
- Add linter rule for validating footer refs.
  Footer references should reference one thing per line. That thing can
  be one of:
  - An URL.
  - An issue or PR reference (local or remote).
  - A 12-character commit hash (local or remote).
- Extend linter to detect new scopes for docs:
  - Commits of type 'docs' can now use these additional scopes (in
    addition to other possible scopes):
    - docs(install) -> for changes to our installation guide(s). It is
      expected for this to change so often that it has its own scope.
    - docs(X) -> where X is the basename of any org file in docs/*.org.
      e.g.
      - docs(index): ...
      - docs(modules): ...
      - docs(faq): ...
- Modify the scope checker to consider *any* parenthetical scope given
  for bump, revert, merge, module, or release commits to be invalid.
- Update bump commit linter for 12c hashes (see 3bedae38dd).
- Fix language in imperative ref linter warning.

Ref https://discourse.doomemacs.org/how2commit
Ref 3bedae38dd
2021-08-03 23:00:43 -04:00
mwmajewsk
02c578f95c
docs: add emacs26 removal for ubuntu to install guide
In some cases, ubuntu may contain a preinstalled version of Emacs26,
which cannot be simply removed with "sudo apt remove emacs", and needs
additional "sudo apt autoremove" to properly uninstall emacs26. Only
this will result with the command "emacs" opening other version than
emacs26.

Ref https://unix.stackexchange.com/a/84488
Close #5336
2021-08-03 10:49:33 -04:00
Rudi Grinberg
dd55ebb67a
module: add :lang dhall
Close #4791

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2021-08-03 01:51:31 -04:00
Henrik Lissner
199fde526e dev: link commit convention guide in PR template
Also clarify the rest of the criteria for concision.
2021-08-02 23:46:44 -04:00
Henrik Lissner
791de329e7 dev: exempt milestones/assignees from stale bot
Mistook exempt-{milestones,assignees} for
exempt-all-{milestones,assignees}. If an issue/PR is assigned one, it
means it's been approved/accepted, and I'll get around to it.
2021-08-02 23:40:50 -04:00
destroyer449
4824a5d005
docs(direnv): fix lorri link
Close #5335
2021-08-02 23:36:12 -04:00
Henrik Lissner
a2f955e0ad
merge: pull request #5333 from tecosaur/mu4e-hotfixes
Mu4e hotfixes
2021-08-02 23:34:53 -04:00
Henrik Lissner
3bedae38dd dev: transition to 12c long hashes
In bumps, in :pin's, and in our git conventions. We have no rules for
the commit linter for it yet, though.
2021-08-02 22:07:13 -04:00
TEC
eaa392c00b
docs(mu4e): fix a typo (errors, plural)
Someone politely requested I add this to my PR on Discord ... why not.
2021-08-03 10:03:10 +08:00
TEC
61126c6bb4
fix(mu4e): improve mu-lock compatability with mac
On mac process args aren't defined, but comm is. Since comm also works
on Linux, we now check for that instead, accounting for a potential
capitalisation difference.
2021-08-03 03:36:57 +08:00
TEC
181f17a6f4
fix(mu4e): account for signature change in v1.6
Mu4e 1.6 changes the signature of `mu4e-draft-open'. Since we don't care
about the args replace funcall with apply to make sure it's happy no
matter how many args it expected.
2021-08-03 03:36:57 +08:00
Henrik Lissner
74f72c15b3 dev: fix commit linter target and lint all commits
- Was formerly processing the internal merge commit, which never conforms
  to our conventions, but is also unrelated to the work at hand.
- Now lints the range of commits applicable to the event, and not just
  the latest commit.
2021-08-02 15:00:53 -04:00
Henrik Lissner
0ca34af323 feat(file-templates): improve diagnostic command
Emit a more helpful error message if a rule was found but yasnippet
can't find the associated snippet.
2021-08-02 15:00:44 -04:00
Ellis Kenyő
425f6a1264
fix(mu4e): remove autoload cookie
Autoload cookie was not working as expected

Close #5331
2021-08-02 03:55:13 -04:00
Henrik Lissner
130c6e90d5 fix(org): doom-module links opening private modules
A doom-module: link should only refer to built-in modules, not
user-provided ones in $DOOMDIR/modules.
2021-08-01 23:37:36 -04:00
Henrik Lissner
5df31a4895 dev: fix and refactor commit lint rules
- Fix rules that weren't working due to faulty logic.
- Revise linter messages for clarity and concision.
- Use conventional commit nomenclature: summary -> subject
- case-fold-search = nil, to ensure case sensitive searches
- Exclude bump type from length checks
2021-08-01 23:37:36 -04:00
Henrik Lissner
11a0c0cbdb dev: add linter rule for commit capitalization
Bad:  'fix(abc): Prevent freezes'
Good: 'fix(abc): prevent freezes'
2021-08-01 23:37:36 -04:00
Henrik Lissner
5d1d0fc7c9 dev: add linter rule for Refs: in commit footer
+ No colon.
+ One ref per line.

Bad:
  Refs: A B C
  Ref: X Y
  Ref: Z
Good:
  Ref A
  Ref B
  Ref C
  Ref X
  Ref Y
  Ref Z
2021-08-01 23:37:36 -04:00
Emin Umut Gerçek
ccd20847c7
fix(lispy): evil-escape keybind collision on j
* Remove evil-escape from lisp modes
* Use evil-escape-inhibit-functions hook

Close #5328
2021-08-01 18:15:19 -04:00
Joshua Suskalo
9dc0d10c09
fix(clojure,org): use cider for org-babel
More than a year ago a change was added to ob-clojure that prevented
evaluating a Clojure code block without setting
`org-babel-clojure-backend'. This change sets this to a default value of
CIDER, since that is the main tool used in Doom.

Without this change, manual configuration is required to use Clojure in
org babel documents.

Close #5233
2021-08-01 15:26:55 -04:00
Yoav Marco
eb3d645bde
fix(latex): bind TeX-view in LaTeX-mode-map too
Close #4945
2021-08-01 15:15:45 -04:00
NightMachinary
a6f365bb3f
fix: doom/move-this-file when directory is the target
* doom/move-this-file now supports moving directly into a directory
* applied requested changes

Close #4861
2021-08-01 15:13:52 -04:00
Daanturo
65950f3e91
feat(vertico): enable smart case for +vertico-file-search
Vanilla Emacs, Ivy, and Helm do this by default. Should be upstreamed.

Close #5322
2021-08-01 14:58:25 -04:00
Sergey Nizovtsev
8257954d53
docs(go): update gore URL in README
The Gore repository was moved and `go get` won't handle redirects.

Close #5325
2021-08-01 14:56:54 -04:00
Ellis Kenyő
89bb96c304
fix(mu4e): allow mu4e to be started early
mu4e complains about missing file-notify-*-watch functions if loaded too early.

Close #5327
2021-08-01 14:54:35 -04:00
Henrik Lissner
3d423862d7 dev: add linter rules for module type
Recently added 'module' to our list of git commit types to represent
changes to our module list. These events are important enough to
Doom (and users) to track separately.
2021-08-01 11:43:01 -04:00
Henrik Lissner
258ef30b4d dev: install emacs in linter workflow
Whoops. Kinda important...
2021-08-01 11:42:52 -04:00
Henrik Lissner
405f96be84 dev: clarify stale bot messages
Also fix typos.
2021-08-01 02:36:26 -04:00
Henrik Lissner
345ff621c3 dev: link to gist for commit docs
Until the new docs are up, link to the gist.
2021-08-01 02:03:36 -04:00
Henrik Lissner
eb7361d9c5 dev: add locked label to locked threads 2021-08-01 02:03:36 -04:00
Henrik Lissner
57a48578e0 dev: clarify triage workflow name 2021-08-01 02:03:33 -04:00
Henrik Lissner
f76c65e8bb dev: fix actions/stale workflows
Correct datatype expectations and revise stale messages.
2021-08-01 01:08:05 -04:00
Henrik Lissner
0b4e1c30b7 dev: fix commit linter
Forgot to add the new -C/--nocolor option for 'doom sync', and to load
the 'doom ci *' family.
2021-08-01 01:02:51 -04:00
Henrik Lissner
074b9eb0d1 dev: add commit linter workflow
Experimenting with an internal linter. Only trouble is, if Doom's CLI is
ever in a broken state, a contributor will have to know about
--no-verify option for git commit. This can be improved post CLI
rewrite.
2021-07-31 23:51:27 -04:00
Henrik Lissner
ea1883c6eb dev: refactor github workflows 2021-07-31 23:49:37 -04:00
Henrik Lissner
426369b4d3 revert: feat(popup): switch-to-buffer-obey-display-actions = t
As suspected, there were edge cases. Lots of sporadic window misbehavior
since I turned this on, so I'm reverting this.

Revert df520dfd4
2021-07-31 19:41:17 -04:00
Henrik Lissner
11007f3997 feat(org): add kbd & doom-{module,package}} links
I make extensive use of these in our new in-repo Org documentation.
2021-07-31 19:40:58 -04:00
Henrik Lissner
bbd3122c2e
Merge pull request #5309 from daanturo/close-lsp-doc
Allow evil users to quickly close the LSP signature buffer
2021-07-31 05:03:34 -04:00
Henrik Lissner
858a0e44a3 feat(org): open help:* links with helpful-*
Rather than describe-*
2021-07-31 04:35:49 -04:00
Henrik Lissner
83171ac554 feat(org): add #+STARTUP inlinegifs playgifs
- #+STARTUP: inlinegifs = play inline gif previews when point is on
  them.
- #+STARTUP: playgifs = play all gifs in the visible buffer (super,
  super slow; use at your own risk).
- Add +org-startup-with-animated-gifs for changing the global
  default (nil). Can be set to 'at-point (inlinegifs) or t (playgifs)
2021-07-31 04:35:49 -04:00
Henrik Lissner
348ff3f65d fix(popup): overaggressive ignoring of popup rules
Would cause errors in some legitimate cases where we want
display-buffer-alist respected.
2021-07-31 04:35:49 -04:00
Henrik Lissner
443370b4d7 feat(crystal): add +lsp flag and support
Since lsp-crystal is provided by lsp-mode.
2021-07-31 04:35:49 -04:00