From 0890851e81d2391aa637e0be5cc5f7f061164d61 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 22 Jul 2019 03:17:00 +0200 Subject: [PATCH] lang/org: set org-link-abbrev-alist non-destructively So prior values aren't overwritten (and shadow these defaults), and also because, due to the hook order, the attach: link was overwritten by this setq. --- modules/lang/org/config.el | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 2b75f0368..6e80d2573 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -356,15 +356,15 @@ file isn't in `org-directory'." 'error))) ;; Add custom link types - (setq org-link-abbrev-alist - '(("github" . "https://github.com/%s") - ("youtube" . "https://youtube.com/watch?v=%s") - ("google" . "https://google.com/search?q=") - ("gimages" . "https://google.com/images?q=%s") - ("gmap" . "https://maps.google.com/maps?q=%s") - ("duckduckgo" . "https://duckduckgo.com/?q=%s") - ("wolfram" . "https://wolframalpha.com/input/?i=%s") - ("doom-repo" . "https://github.com/hlissner/doom-emacs/%s"))) + (nconcq! org-link-abbrev-alist + '(("github" . "https://github.com/%s") + ("youtube" . "https://youtube.com/watch?v=%s") + ("google" . "https://google.com/search?q=") + ("gimages" . "https://google.com/images?q=%s") + ("gmap" . "https://maps.google.com/maps?q=%s") + ("duckduckgo" . "https://duckduckgo.com/?q=%s") + ("wolfram" . "https://wolframalpha.com/input/?i=%s") + ("doom-repo" . "https://github.com/hlissner/doom-emacs/%s"))) (+org-def-link "org" org-directory) (+org-def-link "doom" doom-emacs-dir)