From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: ~/.emacs vs ~/.emacs.d/init.el. Date: Sun, 13 Dec 2020 17:09:04 +0700 Message-ID: References: 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="27696"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 13 11:09:51 2020 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 1koOK7-000758-Lw for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 11:09:51 +0100 Original-Received: from localhost ([::1]:49008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koOK6-0001u4-OT for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 05:09:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koOJb-0001to-Mc for help-gnu-emacs@gnu.org; Sun, 13 Dec 2020 05:09:19 -0500 Original-Received: from mail-vk1-xa2b.google.com ([2607:f8b0:4864:20::a2b]:34561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1koOJa-0002Ui-7V for help-gnu-emacs@gnu.org; Sun, 13 Dec 2020 05:09:19 -0500 Original-Received: by mail-vk1-xa2b.google.com with SMTP id v3so3199403vkb.1 for ; Sun, 13 Dec 2020 02:09:16 -0800 (PST) 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; bh=r1w0p+0/jIUg1hzZdYmlWIOAQi1QTBepjAhV+TtCB6Q=; b=m5ADrV/rf+6dEe5ece0UpHbOXB5h/M//nRsqpfeRlCbShmsmCnEvA+NbljcQxqO615 NkjOIzVb0JxbnGCZOnHtcE7VY/7GcklKIf13MIAh8tc5W/EyuiYYDfY1Rls7yTMi/w+d uijLlNRvyscRsZRpTjDaSWwdYglDnV0dNqm1nmBJM/8HICZ7pBX743SH2niFZtpg0oTS UwX9Wd7Tck2U5ZsMNs4EfHlCKDTZys7pElPM5eq+8NhYcL1ERcpibIbn+pPnd39IIamI V96ou1KTJFWVGg0G3AKjvf0M9+MJV/5fkp0l4REJ2uywHFIhoyaioGult3ixOoNiMAx/ OrOw== 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; bh=r1w0p+0/jIUg1hzZdYmlWIOAQi1QTBepjAhV+TtCB6Q=; b=HO8Bpmj8X0FObLyDZIXhLaStnvKEUOUZ4UBOqrwLjHoCgJs3bc4zznrapkI2lElVzf hyBiuHf6rCHxqbrAOlGQR3FcBZnj0WZShU0ioya2Z0Tzpo+PmAjKj+vHoD+22pGea8NE zJn+0YQOBbsmof1XTL/xHBcfl78mVTV9PM05+ICV6G0mEq/BiZBI8Acrb+NBoIadTZe9 Lr4BtCVronJK0WKngZ1xBdkjcW/W8/Xkvj4IEaG4ZEZRbRSE13w7Sn0p27vS80i6eGyx Jc5mJeyJMdfJFon9e0+eBylwlijRvDCNpx80D4faQRc2VUz132h9zlqd72vcUwrbrQUl Ej1Q== X-Gm-Message-State: AOAM532FsVwMfQzZq+NCmplt5xPpqiry9uHTPSsFT7K/sdtUaMkSkL2r M21LcZ1I33wW908JWNN1FFTy7JVyL6J40H42jmY= X-Google-Smtp-Source: ABdhPJxOZ+O2GcEWQi9tWB4BZVUojf2K+y/XdobbNrkXKYE9YtnyjAy7TDZokeLA+wsFxNR+xq7bEdwd3U3dnOrOSlg= X-Received: by 2002:ac5:cc75:: with SMTP id w21mr3224965vkm.14.1607854155702; Sun, 13 Dec 2020 02:09:15 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::a2b; envelope-from=yurivkhan@gmail.com; helo=mail-vk1-xa2b.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:126302 Archived-At: On Sun, 13 Dec 2020 at 16:00, Hongyi Zhao wrote: > As far as the initialization file is concerned, which is more > preferable,~/.emacs or ~/.emacs.d/init.el? If you are choosing between these two, ~/.emacs.d/init.el is preferable. Because then you can put the whole .emacs.d into version control separately from your home directory. However keep in mind that Emacs 27 adds support for XDG-style configuration directory, ~/.config/emacs/, which gives you the same abilities as ~/.emacs.d with an added benefit of less clutter in your home directory.