all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH] emacs: Improve 'guix-prettify-regexp'.
Date: Sat, 19 Sep 2015 14:03:57 +0300	[thread overview]
Message-ID: <8737yavffm.fsf@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

Hello, along with:

  /gnu/store/…-foo-0.1

we have:

  http://hydra.gnu.org/nar/…-foo-0.1
  http://hydra.gnu.org/log/…-foo-0.1

I think it would be good to "prettify" such things as well, so what
about the attached patch?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-emacs-Improve-guix-prettify-regexp.patch --]
[-- Type: text/x-patch, Size: 964 bytes --]

From 5914f7007d1b27c0fa8594df4c1cff5fdd35e359 Mon Sep 17 00:00:00 2001
From: Alex Kost <alezost@gmail.com>
Date: Sat, 19 Sep 2015 13:55:59 +0300
Subject: [PATCH] emacs: Improve 'guix-prettify-regexp'.

* emacs/guix-prettify.el (guix-prettify-regexp): Modify to handle "nar"
  and "log".
---
 emacs/guix-prettify.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/emacs/guix-prettify.el b/emacs/guix-prettify.el
index 24dfbb3..5d1ce9e 100644
--- a/emacs/guix-prettify.el
+++ b/emacs/guix-prettify.el
@@ -77,9 +77,7 @@ disabling `guix-prettify-mode' a little faster."
   :group 'guix-prettify)
 
 (defcustom guix-prettify-regexp
-  (rx "/"
-      (or "nix" "gnu")
-      "/store/"
+  (rx "/" (or "store" "nar" "log") "/"
       ;; Hash-parts do not include "e", "o", "u" and "t".  See base32Chars
       ;; at <https://github.com/NixOS/nix/blob/master/src/libutil/hash.cc>
       (group (= 32 (any "0-9" "a-d" "f-n" "p-s" "v-z"))))
-- 
2.5.0


             reply	other threads:[~2015-09-19 11:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-19 11:03 Alex Kost [this message]
2015-09-20 16:43 ` [PATCH] emacs: Improve 'guix-prettify-regexp' Ludovic Courtès
2015-09-21 11:43   ` Alex Kost
2015-09-21 16:01     ` Ludovic Courtès
2015-09-22 10:06       ` Alex Kost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8737yavffm.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.