From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:54620) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIkHd-00035q-Uu for guix-patches@gnu.org; Sun, 29 Mar 2020 22:36:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIkHc-0003I7-La for guix-patches@gnu.org; Sun, 29 Mar 2020 22:36:13 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48601) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIkHc-0003Hu-Gr for guix-patches@gnu.org; Sun, 29 Mar 2020 22:36:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jIkHc-0004d7-Ez for guix-patches@gnu.org; Sun, 29 Mar 2020 22:36:12 -0400 Subject: [bug#40302] [PATCH] gnu: Add emacs-racer. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:53034) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIMX6-0007jY-P2 for guix-patches@gnu.org; Sat, 28 Mar 2020 21:14:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIMX5-0007X5-Aj for guix-patches@gnu.org; Sat, 28 Mar 2020 21:14:36 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:46104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIMX4-0007W9-Pk for guix-patches@gnu.org; Sat, 28 Mar 2020 21:14:35 -0400 Received: by mail-pf1-x435.google.com with SMTP id q3so6653853pff.13 for ; Sat, 28 Mar 2020 18:14:34 -0700 (PDT) Received: from ecenter ([2600:1700:83b0:8bd0::6c3]) by smtp.gmail.com with ESMTPSA id t11sm6666962pjo.21.2020.03.28.18.14.32 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 28 Mar 2020 18:14:32 -0700 (PDT) From: John Soo Date: Sat, 28 Mar 2020 18:14:31 -0700 Message-ID: <87eetc2c94.fsf@asu.edu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: 40302@debbugs.gnu.org --=-=-= Content-Type: text/plain Hi Guix, I don't write a lot of rust but racer provides excellent completion for emacs. Thanks, John --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-emacs-racer.patch Content-Transfer-Encoding: quoted-printable Content-Description: add emacs-racer >>From 2d61455ba198cfd02a6056170889f274a6ed577e Mon Sep 17 00:00:00 2001 From: John Soo Date: Tue, 24 Mar 2020 08:18:34 -0700 Subject: [PATCH] gnu: Add emacs-racer. * gnu/packages/emacs-xyz.scm (emacs-racer): New variable. --- gnu/packages/emacs-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 9d40b8019e..9dfdb120ce 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -65,6 +65,7 @@ ;;; Copyright =C2=A9 2020 Michael Rohleder ;;; Copyright =C2=A9 2020 Brice Waegeneire ;;; Copyright =C2=A9 2020 6033fe7de85d <6033fe7de85d@airmail.cc> +;;; Copyright =C2=A9 2020 John Soo ;;; ;;; This file is part of GNU Guix. ;;; @@ -21776,3 +21777,37 @@ enables modal editing and composition of commands,= too. It combines ideas of other Editors like Vim or Kakoune and tries to align them with regular Ema= cs conventions.") (license license:gpl3+))) + +(define-public emacs-racer + (package + (name "emacs-racer") + (version "1.2") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/racer-rust/emacs-racer") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0xj5iki10cg8j8vvqjlw6lfx97k3agwirhchcjnzbnkry48x9qi6")))) + (inputs + `(("emacs-dash" ,emacs-dash) + ("emacs-f" ,emacs-f) + ("emacs-pos-tip" ,emacs-pos-tip) + ("emacs-rust-mode" ,emacs-rust-mode) + ("emacs-s" ,emacs-s))) + (build-system emacs-build-system) + (home-page "https://github.com/racer-rust/emacs-racer") + (synopsis "Racer support for Emacs") + (description + "This is the official Emacs package for Racer. Features: + +@itemize +@item Completion +@item Find Definitions +@item Describe Functions and Types +@end itemize") + (license license:expat))) --=20 2.26.0 --=-=-=--