From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: Re: Snippets for working on Guix Date: Sat, 16 Dec 2017 11:44:45 +0530 Message-ID: References: <87lgi4vpkx.fsf@elephly.net> <87efnwghs3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQ5kT-0000hJ-P0 for guix-devel@gnu.org; Sat, 16 Dec 2017 01:15:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQ5kQ-00038D-JL for guix-devel@gnu.org; Sat, 16 Dec 2017 01:15:01 -0500 Received: from vultr.systemreboot.net ([45.77.148.100]:58166) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eQ5kP-000318-Un for guix-devel@gnu.org; Sat, 16 Dec 2017 01:14:58 -0500 Received: from [117.192.97.210] (helo=steel) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eQ5kF-0005o9-Fe for guix-devel@gnu.org; Sat, 16 Dec 2017 11:44:47 +0530 In-Reply-To: <87efnwghs3.fsf@gnu.org> 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 >> to avoid the need to type out boilerplate I wrote a couple of snippets >> that can be used with yasnippet in Emacs, and I thought I should share >> them with you. >> >> These snippets are available: >> >> ./scheme-mode/guix-package >> ./scheme-mode/guix-origin >> ./scheme-mode/guix-git-reference >> ./scheme-mode/guix-hg-reference >> ./scheme-mode/guix-cvs-reference >> ./scheme-mode/guix-svn-reference >> ./text-mode/guix-commit-message-add-package >> ./text-mode/guix-commit-message-update-package > > That looks really useful! Indeed, this is very useful! :-) > Do you think we could add them under etc/emacs in the repo, and somehow > have them automatically available? Or should it be in Emacs-Guix? It would be nice if this was available automatically through emacs-guix. Apart from the snippets, it would also be nice to somehow automatically update a package definition -- that is, change the version number, download the new source, and update the hash. I was trying to work this out. I was able to get the Guix REPL to download the new source tarball, but couldn't figure out how to retrieve the new hash from the Guix REPL. Any pointers?