From ee610c65c445eea9a8ad8867d89a59cfa75347b7 Mon Sep 17 00:00:00 2001 From: AChavali Date: Sat, 8 Feb 2020 13:09:49 +0000 Subject: ~string= for test in cl-pushnew lookup-provider :test string= makes it so cl-pushnew will test if there are any "Libgen" records already in the alist before pushing. Basically, unique records. --- doom.d/modules/config.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doom.d/modules') diff --git a/doom.d/modules/config.org b/doom.d/modules/config.org index a945178..278ed3c 100644 --- a/doom.d/modules/config.org +++ b/doom.d/modules/config.org @@ -28,8 +28,9 @@ Load the literate.el file to start parsing. (setq display-line-numbers-type nil) (display-battery-mode 1) (setq-default frame-title-format '("%b - εmacs")) -(cl-pushnew '("Libgen" "https://libgen.me/search/all?search=%s") +lookup-provider-url-alist :key #'car) +(cl-pushnew '("Libgen" "https://libgen.me/search/all?search=%s") +lookup-provider-url-alist :key #'car :test 'string=) #+END_SRC + Some quality of life things and others that I couldn't really put in one category - Displaying line numbers isn't usually something I do. If need be, I'll just open them with *tl*. -- cgit v1.2.3-13-gbd6f