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: Fri, 14 Aug 2015 05:18:29 +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 1439529534 23263 80.91.229.3 (14 Aug 2015 05:18:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Aug 2015 05:18:54 +0000 (UTC) To: Stefan Monnier , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 14 07:18:54 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 1ZQ7OH-0002Io-71 for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Aug 2015 07:18:53 +0200 Original-Received: from localhost ([::1]:44873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ7OG-00010l-Be for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Aug 2015 01:18:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ7O6-00010g-TC for help-gnu-emacs@gnu.org; Fri, 14 Aug 2015 01:18:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQ7O5-0000to-TK for help-gnu-emacs@gnu.org; Fri, 14 Aug 2015 01:18:42 -0400 Original-Received: from mail-lb0-x236.google.com ([2a00:1450:4010:c04::236]:32850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ7O5-0000tj-Fg for help-gnu-emacs@gnu.org; Fri, 14 Aug 2015 01:18:41 -0400 Original-Received: by lbbsx3 with SMTP id sx3so39067730lbb.0 for ; Thu, 13 Aug 2015 22:18:40 -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 :content-type; bh=as73kxKjcX6KzP4Gh75v/zS5dTyRG9WAsLvTQs0p37Y=; b=pPWzTRpEhNhyVy61PfXttN9XzE1WOawKtpDllyWOmjzzpFGhTM4pi4i5oIY/mqyfEh CgJMO99U0ogp8l2Wr0hlxi7Ol0FXLt3vIoPZ2qfBsl8dxb0UFBmfi3BZ/fPGSDRF81gG Zc/wgDSjaFQpPc0AgkBJeZwcCfZMNlTmBT9SAbZcFCpiACXIAdb0kkBW6Gh7VmeTcH8K AlbwfsMRqnNj6pSGHEvi/UJgb0NKIDTZckLxl6GKnWEnSzhYzE7DDQ/3ygFMelXAivXH BiDq+HbsBqe0GR/NR/mt7R+t2ViJc9JkTszmAWNd+WGaZWIQmj82qS32kZggBXg2H598 uZxQ== X-Received: by 10.112.85.3 with SMTP id d3mr40670274lbz.33.1439529520763; Thu, 13 Aug 2015 22:18:40 -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::236 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:106569 Archived-At: Also in this example you could write only evil form, because recentf does nothing. Like that. (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))) On Fri, Aug 14, 2015 at 12:25 AM Stefan Monnier wrote: > > 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))) > > But wouldn't that misbehave if you decide to stop using recentf (in > which case you'd want to just comment out your (req-package recentf) > without having to tweak the `evil' part). > > > Stefan >