From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Edward Knyshov Newsgroups: gmane.emacs.help Subject: Re: req-package Date: Thu, 13 Aug 2015 20:43:48 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1439498667 15704 80.91.229.3 (13 Aug 2015 20:44:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Aug 2015 20:44:27 +0000 (UTC) Cc: help-gnu-emacs , Stefan Monnier To: Alexander Shukaev Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 13 22:44:26 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZPzMI-0006HO-KL for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Aug 2015 22:44:18 +0200 Original-Received: from localhost ([::1]:44082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPzMI-0004yb-4s for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Aug 2015 16:44:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPzM2-0004um-LQ for help-gnu-emacs@gnu.org; Thu, 13 Aug 2015 16:44:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPzLz-0004mg-BU for help-gnu-emacs@gnu.org; Thu, 13 Aug 2015 16:44:02 -0400 Original-Received: from mail-lb0-x22b.google.com ([2a00:1450:4010:c04::22b]:34459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPzLy-0004ln-W4 for help-gnu-emacs@gnu.org; Thu, 13 Aug 2015 16:43:59 -0400 Original-Received: by lbbtg9 with SMTP id tg9so34316308lbb.1 for ; Thu, 13 Aug 2015 13:43:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=C7TLQuv2Awb4g+E0ni14DsoivBI6YjKoj2nXOr+VKvA=; b=uBfmVbNhWS/YmaZixlvqmBmiPMrT93+JblZT75TX+IaniRoH8yA3M++LNQN47KMQ48 8pfpG9OPBUTsSfEZGra2C5PONMPgKBoOEpRbvzESTojnBWMYgNnwGN7zZZ2AkdvwBFfv VRKg2+vqJ3amxZKpieoil/eMAT6neqCrZUjC2Kw3IpB38DCqj2lg3XVFkdIJFug9nCn8 uAyn2Lgv51BaKXxf7nUOnEFd6ioZXxlRbyl/2nNmVkVwIdeqUNDvRd+qNjh9rSktIPi+ /bo7Pjr6S31i1dnjN8+BBaf9KDnihfbeR4JRTDhrlyJKzK0+uaTtq41raBa3QD1YWadi pRpw== X-Received: by 10.112.25.39 with SMTP id z7mr39537536lbf.102.1439498638013; Thu, 13 Aug 2015 13:43:58 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22b X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106553 Archived-At: Some words about your example with evil mode. You wrote an example. (use-package recentf :defer :commands (recentf-mode) :init (recentf-mode) :config ;; *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 'motion) (evil-ex-define-cmd "rfm[enu]" #'recentf-open-files))) That's all. So I even wouldn't call this boilerplate, because it less than first example.