all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] emacs: Improve 'guix-prettify-regexp'.
@ 2015-09-19 11:03 Alex Kost
  2015-09-20 16:43 ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Kost @ 2015-09-19 11:03 UTC (permalink / raw)
  To: guix-devel

[-- 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-09-22 10:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-19 11:03 [PATCH] emacs: Improve 'guix-prettify-regexp' Alex Kost
2015-09-20 16:43 ` 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

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.