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

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

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


From: Hongyi Zhao
Subject: Execute "M-x some-command" in ~/.emacs.d/init.el.
Date: Wed, 26 May 2021 23:16:34 +0800

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



reply via email to

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