[Top][All Lists]

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

Re: req-package

From: Edward Knyshov
Subject: Re: req-package
Date: Thu, 13 Aug 2015 20:43:48 +0000

Some words about your example with evil mode.
You wrote an example.

(use-package recentf
  ;; *before*
  (with-eval-after-load 'evil
    (evil-make-overriding-map recentf-dialog-mode-map 'motion)
    (evil-set-initial-state 'recentf-dialog-mode 'motion)
    (evil-ex-define-cmd "rfm[enu]" #'recentf-open-files))
  ;; *after*

It's seems you do not properly get an idea. You should use only one
req-package call for one package. Imaging kind of graph, which you describe
with (req-package package :require dependencies).
Here is how it will be rewritten with req-package

(req-package recentf)

(req-package evil
  :require recentf
  :config (progn  (evil-make-overriding-map recentf-dialog-mode-map 'motion)
                          (evil-set-initial-state 'recentf-dialog-mode
                          (evil-ex-define-cmd "rfm[enu]"

That's all. So I even wouldn't call this boilerplate, because it less than
first example.

reply via email to

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