From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.help Subject: Re: use-package Date: Tue, 03 May 2016 10:47:17 +0000 Message-ID: <87d1p38ll6.fsf@mat.ucm.es> References: <874magv15u.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1462272506 6110 80.91.229.3 (3 May 2016 10:48:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 May 2016 10:48:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 03 12:48:10 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 1axXs9-0005GH-PZ for geh-help-gnu-emacs@m.gmane.org; Tue, 03 May 2016 12:48:09 +0200 Original-Received: from localhost ([::1]:40714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axXs6-0001p1-00 for geh-help-gnu-emacs@m.gmane.org; Tue, 03 May 2016 06:48:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axXro-0001aw-55 for help-gnu-emacs@gnu.org; Tue, 03 May 2016 06:47:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axXrc-0006vE-Ba for help-gnu-emacs@gnu.org; Tue, 03 May 2016 06:47:42 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:55721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axXrc-0006sp-4x for help-gnu-emacs@gnu.org; Tue, 03 May 2016 06:47:36 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1axXrS-00050j-Jw for help-gnu-emacs@gnu.org; Tue, 03 May 2016 12:47:26 +0200 Original-Received: from gilgamesch.quim.ucm.es ([147.96.12.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 May 2016 12:47:26 +0200 Original-Received: from oub by gilgamesch.quim.ucm.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 May 2016 12:47:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: gilgamesch.quim.ucm.es Mail-Copies-To: never User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:qdR4MR5aI+DkIy8dPL/dtg9Gj8U= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:109863 Archived-At: > 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. Thanks. Just one question, for example my emacs_keys file contains stuff like (defun some-funny functions () ) (global-set-key [(f1)] 'save-buffer) (global-set-key [(f2)] 'some-funny-function) (provide 'emacs_keys) So using - use-package is possible? - and if so: would it shorten startup? thanks Uwe Brauer