From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Wiesner Newsgroups: gmane.emacs.devel Subject: Customizable modes and package.el Date: Sat, 28 Mar 2015 09:58:02 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1427533114 16660 80.91.229.3 (28 Mar 2015 08:58:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Mar 2015 08:58:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 28 09:58:25 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YbmZR-0006nZ-0f for ged-emacs-devel@m.gmane.org; Sat, 28 Mar 2015 09:58:21 +0100 Original-Received: from localhost ([::1]:53197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbmZQ-0004U4-DH for ged-emacs-devel@m.gmane.org; Sat, 28 Mar 2015 04:58:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbmZE-0004Tz-89 for emacs-devel@gnu.org; Sat, 28 Mar 2015 04:58:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbmZB-0007eX-1P for emacs-devel@gnu.org; Sat, 28 Mar 2015 04:58:08 -0400 Original-Received: from mail-wi0-f174.google.com ([209.85.212.174]:35378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbmZA-0007df-SA for emacs-devel@gnu.org; Sat, 28 Mar 2015 04:58:04 -0400 Original-Received: by wibbg6 with SMTP id bg6so50934102wib.0 for ; Sat, 28 Mar 2015 01:58:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=D3JeJBzaqGZv/T990p/TklJy2xq+gpZxdRrbQs+FWwM=; b=DqS2s89NhgnTUxZJkp4EN4zuKvhljreF+QRb7D6HwtiSJ61PbHDkHV8ac7Dn/L9XUo yfwyG53YjXzHano191Ta61UBaYesSLKh6CPKfCh56HOyYx6s3SmeZU3gOviFq9dmTSAu Xwl3bB1XqtnH2J4vj+eUSRK6dEc09wIVQSX2bD0mqpbDBVffMT/m1/D6p9IyYaCEk7Zf qlBEBwxAHiwyG2D0zOMpHlcZlfyZhtbcBOE5u3xvQ7tdg77DT3f1dzlS2aUT4lF0e2CN 4YWp1NvR2Wo4h+zkQky/2XuzYw4iUShzjZnL41PHbrS8bE7fxBTCIjVaSo5N7ZoePvz9 0vDg== X-Gm-Message-State: ALoCoQmkWtJ/4/Zl+2GRJytqAWN+TXfew54Z4D9pcl5iN8OnFS/Ne/h5p9YCwqoWT4v5QsoK/3oM X-Received: by 10.181.8.99 with SMTP id dj3mr4637269wid.83.1427533082912; Sat, 28 Mar 2015 01:58:02 -0700 (PDT) Original-Received: by 10.27.14.81 with HTTP; Sat, 28 Mar 2015 01:58:02 -0700 (PDT) X-Originating-IP: [188.174.171.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.212.174 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:184443 Archived-At: Hello, I have a globalized minor mode defined as follows: (define-globalized-minor-mode global-flycheck-mode flycheck-mode flycheck-mode-on-safe :init-value nil :group 'flycheck :require 'flycheck) If my understanding is correct, users should now be able to enable "global-flycheck-mode" through the customize interface, shouldn't they? After all, I can see the mode in customize, enable it, and Emacs writes the following form to my init file: (custom-set-variables ... '(global-flycheck-mode t nil (flycheck)) ... Now, my users usually install my package via ELPA, and by default, ELPA packages do not become available until *after* the init file was loaded. Consequently, the above form fails to load, since customize tries to load a library which isn't available yet. I read the documentation on customize again, but I didn't find anything related to package.el at all. What did I do wrong? Greetings, Sebastian