unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Protonmail via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 64842@debbugs.gnu.org
Subject: bug#64842: 30.0.50; org-mode hook doesn't load as expected
Date: Tue, 25 Jul 2023 14:09:16 +0000	[thread overview]
Message-ID: <4D388202-373B-45B3-A1AE-5B0F7FF5788F@protonmail.com> (raw)
In-Reply-To: <83a5vkqkcm.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1276 bytes --]

Thanks for you reply Eli. I think I figure out what’s going on. The `flyspell` also hooked with org-mode load failed by `failed to define function flyspell`. Then all other modes hooked in my org configuration don’t load.

Sorry for bothering. This issue can be closed.

Thanks

> On Jul 25, 2023, at 07:52, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> Date: Tue, 25 Jul 2023 01:37:12 +0000
>> From: Protonmail via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>>
>> I add several modes hooks to org-mode via `use-package` and `straight.el`. However, it doesn't load
>> any of them as it did in several previous versions.
>>
>> Here is my configuration:
>>
>> ```elisp
>> (use-package org
>> ;;:straight (:type built-in)
>> :ensure org-plus-contrib
>> :hook
>> (
>> (org-mode . org-indent-mode)
>> (org-mode . visual-line-mode)
>> (org-mode . ejira-mode)
>> ))
>> ```
>>
>> Regardless of whether `:straight (:type built-in)` is configured or not, the modes that are being hooked
>> don't load.
>
> AFAICT, you are using :hook incorrectly. The "Hooks" node of the
> use-package manual explains how to use it correctly. In a nutshell,
> :hook is not for adding stuff to the hook of the package you are
> declaring with use-package.

[-- Attachment #2: Type: text/html, Size: 4936 bytes --]

  reply	other threads:[~2023-07-25 14:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-25  1:37 bug#64842: 30.0.50; org-mode hook doesn't load as expected Protonmail via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-25 11:52 ` Eli Zaretskii
2023-07-25 14:09   ` Protonmail via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-07-25 14:27     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D388202-373B-45B3-A1AE-5B0F7FF5788F@protonmail.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=64842@debbugs.gnu.org \
    --cc=ccqpein@protonmail.com \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).