From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Check/find/locate the customized function/command of a specific project in Emacs conveniently/quickly/efficiently. Date: Mon, 5 Jul 2021 09:57:47 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32405"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: =?UTF-8?Q?Daniel_Mart=C3=ADn?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 05 03:58:37 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0Dsb-0008G4-JP for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Jul 2021 03:58:37 +0200 Original-Received: from localhost ([::1]:33540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0Dsa-0000JY-LJ for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Jul 2021 21:58:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0Ds5-0000Ag-41 for help-gnu-emacs@gnu.org; Sun, 04 Jul 2021 21:58:05 -0400 Original-Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:45779) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0Ds2-0000Cf-AR for help-gnu-emacs@gnu.org; Sun, 04 Jul 2021 21:58:04 -0400 Original-Received: by mail-lj1-x22e.google.com with SMTP id b40so2678732ljf.12 for ; Sun, 04 Jul 2021 18:58:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=47myddsVEjVXkcea1k6tVXFQJ71A6rH1Z7LdNzG4Iqs=; b=CJ6zb9BUpdgG3CicpBPw+0Qp72ixKwYb3733jkhoM7qws9GnSIfDBCXLrnw0IHAX6D O7IJXDgYcIFZgPFur44r2xoX81yRSCo3yJjdik70XweP0x53yfBA3UqZvQKstkMAzrVh vauVNqfRUq9YBhFyDQNRvS/Bahk+QTCcgCm7DGx1AQu0kECYY33Xa0NSgyicSE9SZGwF RXKeo4HASq4RhsVHVGeH7Df4znEsSrEZqvUa8ePKWi4qXVN6Qj5XlNVJCcDrBn0xgh3w FunAM8ns72XOW141O5pKezdV+GVp1Gbdt8bKkJSCg23XF3TnnIMIDRmBzHuLJvDYvktm vesw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=47myddsVEjVXkcea1k6tVXFQJ71A6rH1Z7LdNzG4Iqs=; b=ZqrZ0lfzj/ZK6YliwvQONskcRh0CZhdPTb+bNetsyS/Da8phDqZE4Prsj8a+/aV7+5 vbWIQQ9zsJGVVlasQYu5vGOQmsKbp+zR0RFJloSTMyd7bBJoN/F4RSfxAfPwY9e/xn+I JS9z02jkT2h5d+C8NOLGU6hONAMFACNW2I3L55vSFxosX6ZqOF0plqk1lVHsWNg9TT8v OSX1suC0hv/cN4Opm/efWdhlN9Kg08YcrA3riDu84rvbFaEwo4BAROYZyIbsG28lV4wD 9NrpNIBf7dewBcgEMp2FahwtZJF/77L9+Ue5yQk4lG/Yv3i+k0HFgSS3gbnEBHJELBhZ a2Yg== X-Gm-Message-State: AOAM5311+3FhaaxtmiIlWelfoBNXFYwMo4A4WXy8WwVeb3/D6Tp1+1oI z5tqX9PQtBtJqqA7tLHeTgKTOlS4GOcSF4RzhNY= X-Google-Smtp-Source: ABdhPJy7vytAr5rYTgIztY2DUVY4FGcYhGoGD5/sAkhsrIA8b6QxXWbe5Sk7d5Ihw4TIOltPMdHET9mNwnradmv+2gM= X-Received: by 2002:a2e:97cf:: with SMTP id m15mr9419732ljj.246.1625450279612; Sun, 04 Jul 2021 18:57:59 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x22e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131464 Archived-At: On Mon, Jul 5, 2021 at 5:22 AM Daniel Mart=C3=ADn wrot= e: > > Hongyi Zhao writes: > > > I'm currently learning the configuration used by doom Emacs [1]. For > > example, the following code snippet shows on > > : > > > > (use-package! company-math > > :when (featurep! :completion company) > > :defer t > > :init > > (add-to-list '+latex--company-backends > > #'+latex-symbols-company-backend nil #'eq)) > > > > In the above code snippet, there are some customized > > function/command/variable, i.e., use-package!, featurep!, > > +latex--company-backends, and +latex-symbols-company-backend, which > > are not so easy to understand just by their names. So, I want to > > check/find/locate the corresponding definitions for them in Emacs > > conveniently/quickly/efficiently. Because they are customized things, > > the > > `M-.' doesn't work for them. > > It seems like use-package! is a macro defined by Doom Emacs, so you can > do C-h f use-package! RET to read its documentation. Similarly, > +latex-symbols-company-backend seems like a Lisp variable added by Doom > Emacs, so you can get help by doing C-h v +latex-symbols-company-backend > RET. > > Alternatively, you can type C-h o (describe-symbol) to get documentation > about any symbol (variable, function, etc.). To use the above method, I must have installed Doom Emacs, but that's not the case on my side - I just want to inspect Doom Emacs' configurations source code for learning some mechanisms developed by it. Regards --=20 Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China