From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "John Wiegley" Newsgroups: gmane.emacs.devel Subject: Re: custom-set-variables considered harmful Date: Tue, 28 Nov 2017 08:50:34 -0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1511887918 29429 195.159.176.226 (28 Nov 2017 16:51:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 28 Nov 2017 16:51:58 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (darwin) Cc: Elias =?utf-8?Q?M=C3=A5rtenson?= , Stefan Monnier , emacs-devel To: Philippe Vaucher Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 28 17:51:49 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJj6l-0006Yg-K1 for ged-emacs-devel@m.gmane.org; Tue, 28 Nov 2017 17:51:43 +0100 Original-Received: from localhost ([::1]:38907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJj6r-0006nP-5f for ged-emacs-devel@m.gmane.org; Tue, 28 Nov 2017 11:51:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJj6e-0006lX-Nf for emacs-devel@gnu.org; Tue, 28 Nov 2017 11:51:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJj6d-0002Hv-RP for emacs-devel@gnu.org; Tue, 28 Nov 2017 11:51:36 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJj6U-00027H-Dd; Tue, 28 Nov 2017 11:51:26 -0500 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:43961) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1eJj6U-0005gx-1m; Tue, 28 Nov 2017 11:51:26 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 04EAC20DA1; Tue, 28 Nov 2017 11:51:25 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Tue, 28 Nov 2017 11:51:25 -0500 X-ME-Sender: Original-Received: from localhost (d-69-91-135-157.dhcp4.washington.edu [69.91.135.157]) by mail.messagingengine.com (Postfix) with ESMTPA id 87BA9240F6; Tue, 28 Nov 2017 11:51:24 -0500 (EST) In-Reply-To: (Philippe Vaucher's message of "Tue, 28 Nov 2017 15:12:46 +0100") Mail-Followup-To: Philippe Vaucher , Elias =?utf-8?Q?M=C3=A5rtenson?= , Stefan Monnier , emacs-devel X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220501 Archived-At: >>>>> "PV" == Philippe Vaucher writes: VP> The problem I have with c-s-v is that I don't see its benefits for configs VP> like this: Just FYI, in the latest use-package (on github) you can now say: (use-package ido :bind ("C-b" . ido-switch-buffer) :custom ((ido-enable-flex-matching t) (ido-create-new-buffer 'always) (ido-use-url-at-point nil) (ido-use-filename-at-point nil) ;; Disable auto searching for files unless called explicitly (ido-auto-merge-delay-time 99999) ;; Avoid "size too big" errors (ido-max-directory-size 300000) ;; Always propose old buffers as well (ido-use-virtual-buffers nil) ;; Don't remember history (ido-enable-last-directory-history nil)) :config (ido-mode t) (ido-everywhere t)) Which uses custom-set-variables under the hood, taking advantage of any :set functions related to those variables. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2