emacs/var/elfeed/db/data/e2/e27d6ccd1cf7519640e9191e421578ca1735f61f
2022-01-03 12:49:32 -06:00

1 line
1.1 KiB
Plaintext

<!-- SC_OFF --><div class="md"><p>I&#39;m confused on how to get a snippet of elisp to work. I&#39;m trying to do</p> <pre><code>(setq org-refile-targets `(((concat dropbox-dir &quot;/Org/archive.org&quot;) :maxlevel . 1))) </code></pre> <p>I want emacs to execute the concat before the setq essentially, so the value of <code>org-refile-targets</code> becomes</p> <pre><code>((&quot;~/[USER]/Dropbox/Org/archive.org&quot; :maxlevel . 1)) </code></pre> <p>What is actually happening is that emacs is storing <code>org-refile-targets</code> as</p> <pre><code>(((concat dropbox-dir &quot;/Org/archive.org&quot;) :maxlevel . 1)) </code></pre> <p>Which causes a type error whenever I run <code>org-refile</code></p> <p>I&#39;m quite new to elisp, so it&#39;s definitely me not understanding how this works. What am I doing wrong?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/dwdwdan"> /u/dwdwdan </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/pnysaw/concat_inside_list/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/pnysaw/concat_inside_list/">[comments]</a></span>