From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: use-package Date: Mon, 02 May 2016 18:47:22 +0000 Message-ID: References: <874magv15u.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1462214912 18822 80.91.229.3 (2 May 2016 18:48:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 May 2016 18:48:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 02 20:48:31 2016 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 1axItQ-00065Y-8m for geh-help-gnu-emacs@m.gmane.org; Mon, 02 May 2016 20:48:28 +0200 Original-Received: from localhost ([::1]:38083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axItM-0005WK-I0 for geh-help-gnu-emacs@m.gmane.org; Mon, 02 May 2016 14:48:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axIt1-0005DC-84 for help-gnu-emacs@gnu.org; Mon, 02 May 2016 14:48:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axIsp-00013s-D6 for help-gnu-emacs@gnu.org; Mon, 02 May 2016 14:47:57 -0400 Original-Received: from mail-ob0-x229.google.com ([2607:f8b0:4003:c01::229]:35435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axIso-00010r-5U for help-gnu-emacs@gnu.org; Mon, 02 May 2016 14:47:51 -0400 Original-Received: by mail-ob0-x229.google.com with SMTP id n10so79928466obb.2 for ; Mon, 02 May 2016 11:47:36 -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; bh=cz46+AfRKKDFscuB1Hq3LKfmGXxB2u8Lvg4uJVUW2/s=; b=or2KHJq3sK+cqaOBVsAteaTa3Wl1L9aoR12QNt2OlErckK4eX0zqDxSx7KuIUhszPY CPwCZ47eJdE5BMsBhilwFOsYc6uvDn3Hh0DErK1qIDmEs6CfpvNWJZOQcgXfqP2pnEkn 6FDZa5fXyv9UfViUpIjNUbQFvo157GUDAm3Q8yeo6q1UfgWSz4uTyQsK2NQ8ACl6MR0R arwfVq+zWUjgmgOdnBfUBb7yXrHX9pLVq4DGe5dor9fJp4RhAF5tleW8WhXHeTKfNZ2c gn3OHlifJTPgjRcjeGbEUxYt/S7Xi6NTKSsTLsvJwdxVcqnRLqK9DSp17ghQJQgvHaK+ HSzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=cz46+AfRKKDFscuB1Hq3LKfmGXxB2u8Lvg4uJVUW2/s=; b=cg0U4stc9uv4vvMHzavIsSQCqo2FZiDNdbcw98In6pQ1OcxUOkkL5wmPLHYAdDnfDH 5WvSy7Poz9tzm5tUy1SeJ9PET2CrQLpAiwdSeDE8WzzHuVzne8r0TkGezKj5iIF3JnEw AnmDRfL743qmOG/Ih4gcVKgoQSv7JGy0sEXGQQOQOMXKB40Fmj1nSeCx1Kt2V+mwePVE 0uu/Ruk+rh4Eb2Wr9YYGnXItVBIyLhoxygXwyoppFJTZ4DUUm+4JpXAsqFXRuKXsJIyY yRSYs0C42d7W4G5BZnCCoAQjnTHMhRSs7+WqDYhPs1tCDY4lu74VOKhpEYj1pd6LxOOB 1F1A== X-Gm-Message-State: AOPr4FUECxS5wOptq6pUZ2j49jVpBwqbqi7CkVbknBgY5ZAAbsSH4+4/3GBNyEIsA94Y8/Q6IGjZQ9muXjwZRQ== X-Received: by 10.182.215.166 with SMTP id oj6mr15552145obc.81.1462214852262; Mon, 02 May 2016 11:47:32 -0700 (PDT) In-Reply-To: <874magv15u.fsf@mat.ucm.es> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c01::229 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:109861 Archived-At: > > Now my real init file, emacs_init.el > > contains calls to many official packages such as auctex, orgmode, gnus > to name a few. These calls I presume I am able to transfer to the > use-package syntax. > > But I have also private files, with some hacks, one file with my global > keybindings etc > > How do I treat those files? > > Maybe somebody with experience in use-package could give me an advice? > This probably has nothing to do with use-package. You can have a mix of (use-package ..) and (require ..) forms. I use use-package for all my packages. But I also `require' files like setup-personal.el (which have a (provide 'setup-personal)), which I do not commit to github. https://github.com/kaushalmodi/.emacs.d/blob/d51b8bb267fd18978eed28e59a28006b235f75aa/init.el#L310-L311 Example use: (require 'setup-personal nil :noerror) If a setup-personal.el (with the right provide) is found in the load-path, it will be required, else nothing will happen (no errors). Then, within the setup-personal.el, I would be having use-package forms if any. Hope this helps. -- -- Kaushal Modi