help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Execute "M-x some-command" in ~/.emacs.d/init.el.


From: Hongyi Zhao
Subject: Re: Execute "M-x some-command" in ~/.emacs.d/init.el.
Date: Thu, 27 May 2021 00:12:28 +0800

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 via email to

[Prev in Thread] Current Thread [Next in Thread]