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: using use-package Date: Fri, 14 Aug 2015 05:23:58 +0000 Message-ID: References: <87d1yufwjk.fsf@robertthorpeconsulting.com> <87k2t1o8iz.fsf@russet.org.uk> <55CD78A9.1050309@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1439529866 27832 80.91.229.3 (14 Aug 2015 05:24:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Aug 2015 05:24:26 +0000 (UTC) To: Nikolay Kudryavtsev , 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:24: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 1ZQ7Ta-0007lk-Bm for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Aug 2015 07:24:22 +0200 Original-Received: from localhost ([::1]:44889 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ7TZ-0003FH-8S for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Aug 2015 01:24:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ7TO-0003Eh-R6 for help-gnu-emacs@gnu.org; Fri, 14 Aug 2015 01:24:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQ7TN-0002xb-Qj for help-gnu-emacs@gnu.org; Fri, 14 Aug 2015 01:24:10 -0400 Original-Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:34623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ7TN-0002xM-Cm for help-gnu-emacs@gnu.org; Fri, 14 Aug 2015 01:24:09 -0400 Original-Received: by lbbtg9 with SMTP id tg9so39420100lbb.1 for ; Thu, 13 Aug 2015 22:24:08 -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=DXrGNYeRIN3JGdiqSIoKbWLrBr/TrSxMgKUxyxWZCP8=; b=e+CfxuYqNfYOUiVrLHUH41kQWwfCaoFZ+2rF1CAvCVExd2MC+60SsJwlP73aF3AE0V QQYiOBibEdmE1wYPA3AaKU5n103e5aCSRcqooUR5/r/tYXIVn4utE53GlMfZAknso3s6 wlSv6DhOLvZL/4BDn2LRxI1K/2SiNxRPiislQwkKV/yvVCBTiIsQTPaGc3rknLP6JZrY vyLvvL+feWYjMiafrKyIADUsKweNI8xARD4B4Ra+GZipe8XW6w97LvQdafUExIxCu3U4 3k7Okh0D9WCyD8Uarp3WgMTV6t8hnC1GxqhlrD9dopupno56Tq/FaVK166x+SOYeiZRH ZzRQ== X-Received: by 10.152.219.3 with SMTP id pk3mr40834328lac.114.1439529848341; Thu, 13 Aug 2015 22:24:08 -0700 (PDT) In-Reply-To: <55CD78A9.1050309@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::233 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:106570 Archived-At: Nicolay, here is example from my config. (req-package company :require yasnippet :config (progn (global-company-mode 1) (setq company-idle-delay 0.1) (setq company-show-numbers t) (setq company-minimum-prefix-length 2) (setq company-dabbrev-downcase nil) (setq company-dabbrev-other-buffers t) (setq company-auto-complete nil) (setq company-dabbrev-code-other-buffers 'all) (setq company-dabbrev-code-everywhere t) (setq company-dabbrev-code-ignore-case t) (global-set-key (kbd "C-") 'company-dabbrev) (global-set-key (kbd "M-") 'company-complete) (global-set-key (kbd "C-c C-y") 'company-yasnippet))) (req-package company-quickhelp :require company :config (company-quickhelp-mode 1)) (req-package company-restclient :require company :config (add-to-list 'company-backends 'company-restclient)) So cider initialization would look like this (req-package cider :require company :config ({init-cier-for-company-mode})) It might solve your problem. On Fri, Aug 14, 2015 at 8:12 AM Nikolay Kudryavtsev < nikolay.kudryavtsev@gmail.com> wrote: > Cider does not really require company, nor company requires cider. But > when we have both we need to configure them to work together. I've > noticed that those "intersection" configuration relationships are more > common than real requirement relationships. Putting intersection like > this into use-package declarations for either package does not seem like > a correct way of doing it. Instead I wish there was a separate macro for > cases like this. > > -- > Best Regards, > Nikolay Kudryavtsev > > >