all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Execute "M-x some-command" in ~/.emacs.d/init.el.
Date: Wed, 26 May 2021 23:16:34 +0800	[thread overview]
Message-ID: <CAGP6POJrgQd5ZmLnLrk5z5KhFiRpqEz=V5Xt=zXz0kMBWU__eQ@mail.gmail.com> (raw)

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	other threads:[~2021-05-26 15:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-26 15:16 Hongyi Zhao [this message]
2021-05-26 15:31 ` Execute "M-x some-command" in ~/.emacs.d/init.el Omar Polo
2021-05-26 16:12   ` Hongyi Zhao

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='CAGP6POJrgQd5ZmLnLrk5z5KhFiRpqEz=V5Xt=zXz0kMBWU__eQ@mail.gmail.com' \
    --to=hongyi.zhao@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.