all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Omar Polo <op@omarpolo.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Execute "M-x some-command" in ~/.emacs.d/init.el.
Date: Thu, 27 May 2021 00:12:28 +0800	[thread overview]
Message-ID: <CAGP6POJO2xFG3oK-6SfTDMnDga6rT4a8CmYGfEv0XgjSYwBoTg@mail.gmail.com> (raw)
In-Reply-To: <87bl8x1pg0.fsf@omarpolo.com>

On Wed, May 26, 2021 at 11:32 PM Omar Polo <op@omarpolo.com> wrote:
>
>
> 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))

Really. Thank you for clarifying this for me.

HY
>
> > Regards
>


-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China



      reply	other threads:[~2021-05-26 16:12 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
2021-05-26 16:12   ` Hongyi Zhao [this message]

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=CAGP6POJO2xFG3oK-6SfTDMnDga6rT4a8CmYGfEv0XgjSYwBoTg@mail.gmail.com \
    --to=hongyi.zhao@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=op@omarpolo.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.