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: Try to modularize the configuration of Emacs. Date: Wed, 7 Jul 2021 15:25:58 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13186"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 07 09:27:01 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 1m11xV-0003Iq-0q for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Jul 2021 09:27:01 +0200 Original-Received: from localhost ([::1]:40128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m11xU-0005BB-23 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Jul 2021 03:27:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m11wj-00059x-H2 for help-gnu-emacs@gnu.org; Wed, 07 Jul 2021 03:26:14 -0400 Original-Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:35439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m11wi-0007zW-3F for help-gnu-emacs@gnu.org; Wed, 07 Jul 2021 03:26:13 -0400 Original-Received: by mail-lj1-x234.google.com with SMTP id z9so1473249ljm.2 for ; Wed, 07 Jul 2021 00:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=nXjUUyvKkxs8o/ge4grF/kysjG7Ji2Sx+5qNa/uoYqE=; b=Hhv2bTwIs4+b8Behj+1EAKZ+h90+Q9XVxLe/rU22K9CNQCWX58UlF6rm39hc2leSgK jt9/gPdpYLGOCzEbTOC7M9lJZcynBCpOAFXgfIKvpzdvt2WlJ/L18qH7oUgxMJ98PaS2 4HF1jPrLs5o6CzCYo7P/vaRW0Uo7F2wjashlMa8mWi9b7YyfgyFIUu1JXe4YC2BSwn6l Q9141Ii4N5cCtvjFD3zAII2aQO/7qb8EyiIf/ljddz9CU9/PnDAaNU1S5PpUdp9k5/Lo Qw4fvXAG8bNPMsKvcjqsu6T7rEq5RXOqeDBi6XcgrNwDsqWbDiThLOIqgwixXCK6lsKF ughw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nXjUUyvKkxs8o/ge4grF/kysjG7Ji2Sx+5qNa/uoYqE=; b=oNWobv4DahuWcpuXxUwRzyepOoXQhY9lrZ1+uUoZCXsQn0ZuswUss+sSbz59QUBrlZ O9/iq6O8BmQvnv0bd8UPD6ItetA8B1mm0z6gve8UTKlmNt40o+7Hm+zavqko5Catsb/w yb+ruVHXvkVk6lPfZKIh88iHL5ZISU8mj9sxFbCK3LCkYlXk3fVZhbglAYTHv81Buh1Z KUi2RdUTZ7EoraaBMJNE97n22ruYO1Np1F6QbS6xOReIIL03rclvikXBXS4z6ASIHGvM rCR22G7sOGMYWUeBmbblgRIbd5qEyAurHzXj3RQCczmn88X1FoDI84Yag0QRZ10d7FYR +i6g== X-Gm-Message-State: AOAM530pAb/HtT8BejTg4qRoziu+FK/lu3/s/xf/BBHrvmschzgMp0ML zpwEU2nam1fzUH/vLVTnZDD7Na33z0+PYvgSgQ0O8rLljV/aTXTwtoM= X-Google-Smtp-Source: ABdhPJy1uIMlA9yweqpfLAsaM++36Iy4rxnmDWiJr8+o2iSPNgCZ/RmrEu07iWEimqqxA3jFd4ldkGQyV/H8ggdoh3w= X-Received: by 2002:a2e:9652:: with SMTP id z18mr18227314ljh.413.1625642769968; Wed, 07 Jul 2021 00:26:09 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x234.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:131611 Archived-At: I'm currently trying to modularize my configuration of Emacs according to the poplular doo-emacs's layout, say, for different languages, with the following file tree structure: ~/.emacs.d/modules/lang/latex ~/.emacs.d/modules/lang/python [...] In my `~/.emacs.d/init.el', I want to load/apply the corresponding language's configuration when I open the specific source file in Emacs. How to achieve this purpose? Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China