Skip to content

Commit

Permalink
Give custom type alias precedence over builtins
Browse files Browse the repository at this point in the history
This allows for custom aliases to be chosen over builtin aliases when
matching file name against alias globs.

Fixes #22
  • Loading branch information
dajva committed Oct 18, 2017
1 parent 1a4ebe8 commit 5de611e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rg.el
Expand Up @@ -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 ()
Expand Down

0 comments on commit 5de611e

Please sign in to comment.