emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom-set-variables considered harmful


From: John Wiegley
Subject: Re: custom-set-variables considered harmful
Date: Tue, 28 Nov 2017 08:50:34 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (darwin)

>>>>> "PV" == Philippe Vaucher <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]