[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Execute "M-x some-command" in ~/.emacs.d/init.el.
From: |
Omar Polo |
Subject: |
Re: Execute "M-x some-command" in ~/.emacs.d/init.el. |
Date: |
Wed, 26 May 2021 17:31:59 +0200 |
User-agent: |
mu4e 1.4.15; emacs 28.0.50 |
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