all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Protonmail <ccqpein@protonmail.com>
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:52:25 +0300	[thread overview]
Message-ID: <83a5vkqkcm.fsf@gnu.org> (raw)
In-Reply-To: <3979AE01-C943-4ED2-A42D-2A060EB4D2EF@protonmail.com> (bug-gnu-emacs@gnu.org)

> 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.





  reply	other threads:[~2023-07-25 11:52 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 [this message]
2023-07-25 14:09   ` Protonmail via Bug reports for GNU Emacs, the Swiss army knife of text editors
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

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

  git send-email \
    --in-reply-to=83a5vkqkcm.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=64842@debbugs.gnu.org \
    --cc=ccqpein@protonmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.