From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: [PATCH 0/4] Update mu and autoload mu4e. Date: Sun, 8 May 2016 13:21:47 +0300 Message-ID: <1462702911-18777-1-git-send-email-alezost@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azLqm-0006M5-NH for guix-devel@gnu.org; Sun, 08 May 2016 06:22:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azLqg-0001ZH-UV for guix-devel@gnu.org; Sun, 08 May 2016 06:22:11 -0400 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:34989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azLqg-0001YG-Lb for guix-devel@gnu.org; Sun, 08 May 2016 06:22:06 -0400 Received: by mail-lf0-x241.google.com with SMTP id u64so18058869lff.2 for ; Sun, 08 May 2016 03:22:06 -0700 (PDT) Received: from localhost.localdomain ([217.107.192.156]) by smtp.gmail.com with ESMTPSA id i3sm4210493lbd.44.2016.05.08.03.22.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 May 2016 03:22:05 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Hello, does anyone use mu4e (emacs interface for 'mu')? If you do, may I ask how? By adding "~/.guix-profile/share/emacs/site-lisp/mu4e" to 'load-path' manually and requiring mu4e? Our Emacs doesn't look in sub-directories of "share/emacs/site-lisp" (only in "guix.d" subdir), so mu4e is not found automatically... I've just thought that it would probably be better to look at site-lisp subdirs and not to use a special "guix.d" directory, but it's for a separate thread. Returning to mu4e, I see that (require 'mu4e) is recommended¹, but IMO requiring features in your ".emacs" is a bad practice. I recommend to avoid it if possible, because requiring big packages can significantly reduce start-up time of your Emacs. Instead you can wrap your settings with 'with-eval-after-load' and use 'autoload' function if you need to "pick" some command from a package. Alternatively there is 'use-package' package². After this patchset, "M-x mu4e" will be available right away (do not require mu4e, as it will not be needed). [PATCH 1/4] gnu: mu: Use 'modify-phases'. [PATCH 2/4] gnu: mu: Install emacs files in a proper place. [PATCH 3/4] gnu: mu: Install emacs autoloads. [PATCH 4/4] gnu: mu: Update to 0.9.16. ¹ http://www.djcbsoftware.nl/code/mu/mu4e/Minimal-configuration.html#Minimal-configuration ² https://github.com/jwiegley/use-package