From 5de611eae7787ecbc285fe7e31e412b9281a4e14 Mon Sep 17 00:00:00 2001 From: David Landell Date: Wed, 18 Oct 2017 22:12:54 +0200 Subject: [PATCH] Give custom type alias precedence over builtins This allows for custom aliases to be chosen over builtin aliases when matching file name against alias globs. Fixes #22 --- rg.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rg.el b/rg.el index 1635bcc..b54bf2f 100644 --- a/rg.el +++ b/rg.el @@ -378,7 +378,7 @@ If NOSPECIAL is non nil the `rg-special-type-aliases' will not be included." (unless rg-builtin-type-aliases (setq rg-builtin-type-aliases (rg-list-builtin-type-aliases))) - (append rg-builtin-type-aliases rg-custom-type-aliases + (append rg-custom-type-aliases rg-builtin-type-aliases (unless nospecial rg-special-type-aliases))) (defun rg-default-alias ()