From: Omar Polo <op@omarpolo.com>
To: Hongyi Zhao <hongyi.zhao@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Execute "M-x some-command" in ~/.emacs.d/init.el.
Date: Wed, 26 May 2021 17:31:59 +0200 [thread overview]
Message-ID: <87bl8x1pg0.fsf@omarpolo.com> (raw)
In-Reply-To: <CAGP6POJrgQd5ZmLnLrk5z5KhFiRpqEz=V5Xt=zXz0kMBWU__eQ@mail.gmail.com>
Hongyi Zhao <hongyi.zhao@gmail.com> writes:
> See my following settings in ~/.emacs.d/init.el:
>
> (require 'keycast
> (keycast-mode)
> )
>
> The above code snippet will automatically run the "M-x keycast-mode"
> command. While I also tried with following configuration, but it seems
> that the command was not triggered during Emacs' initialization:
>
> (use-package keycast
> :commands (keycast-mode)
> )
> Any hints for this problem?
use-package' :commands doesn't invoke commands, it only sets up
autoloads. You probably intended
(use-package keycast
:config
(keycast-mode))
> Regards
next prev parent reply other threads:[~2021-05-26 15:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-26 15:16 Execute "M-x some-command" in ~/.emacs.d/init.el Hongyi Zhao
2021-05-26 15:31 ` Omar Polo [this message]
2021-05-26 16:12 ` Hongyi Zhao
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=87bl8x1pg0.fsf@omarpolo.com \
--to=op@omarpolo.com \
--cc=help-gnu-emacs@gnu.org \
--cc=hongyi.zhao@gmail.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.