* Execute "M-x some-command" in ~/.emacs.d/init.el.
@ 2021-05-26 15:16 Hongyi Zhao
2021-05-26 15:31 ` Omar Polo
0 siblings, 1 reply; 3+ messages in thread
From: Hongyi Zhao @ 2021-05-26 15:16 UTC (permalink / raw)
To: help-gnu-emacs
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?
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Execute "M-x some-command" in ~/.emacs.d/init.el.
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
0 siblings, 1 reply; 3+ messages in thread
From: Omar Polo @ 2021-05-26 15:31 UTC (permalink / raw)
To: Hongyi Zhao; +Cc: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Execute "M-x some-command" in ~/.emacs.d/init.el.
2021-05-26 15:31 ` Omar Polo
@ 2021-05-26 16:12 ` Hongyi Zhao
0 siblings, 0 replies; 3+ messages in thread
From: Hongyi Zhao @ 2021-05-26 16:12 UTC (permalink / raw)
To: Omar Polo; +Cc: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-26 16:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.