From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evmBk-0002J1-Fw for guix-patches@gnu.org; Tue, 13 Mar 2018 11:50:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evmBe-0006EQ-Ls for guix-patches@gnu.org; Tue, 13 Mar 2018 11:50:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evmBe-0006EF-GM for guix-patches@gnu.org; Tue, 13 Mar 2018 11:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1evmBe-0005No-6D for guix-patches@gnu.org; Tue, 13 Mar 2018 11:50:02 -0400 Subject: [bug#30797] [PATCH 1/2] gnu: Add emacs-exec-path-from-shell Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evmAl-0001WE-Ir for guix-patches@gnu.org; Tue, 13 Mar 2018 11:49:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evmAi-0005lL-6W for guix-patches@gnu.org; Tue, 13 Mar 2018 11:49:07 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:49081) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1evmAh-0005kx-Ut for guix-patches@gnu.org; Tue, 13 Mar 2018 11:49:04 -0400 From: Konrad Hinsen Date: Tue, 13 Mar 2018 16:47:01 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30797@debbugs.gnu.org * gnu/packages/emacs.scm (emacs-exec-path-from-shell): New variable. --- gnu/packages/emacs.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index c2c162c75..9c9c399fd 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -7361,3 +7361,31 @@ highlighting and indentation support.") @uref{https://www.terraform.io/, Terraform} configuration files. Most of the functionality is inherited from @code{hcl-mode}.") (license license:gpl3+))) + +(define-public emacs-exec-path-from-shell + (package + (name "emacs-exec-path-from-shell") + (version "1.11") + (source + (origin + (method url-fetch) + (uri (string-append + "http://stable.melpa.org/packages/exec-path-from-shell-" + version + ".el")) + (sha256 + (base32 + "03qjgb81cq1l3j54lvlf98r75vmmgd06mj6qh5wa6mz4xzp4w26r")))) + (build-system emacs-build-system) + (home-page + "https://github.com/purcell/exec-path-from-shell") + (synopsis + "Get environment variables such as $PATH from the shell") + (description + "This library allows the user to set Emacs' @code{exec-path} and @code{$PATH} +from the shell path, so that @code{shell-command}, @code{compile} and the +like work as expected on systems on which Emacs is not guaranteed +to inherit a login shell's environment variables. It also allows other +environment variables to be retrieved from the shell, so that Emacs will +see the same values you get in a terminal.") + (license license:gpl3+))) -- 2.16.2