1 line
1.1 KiB
Plaintext
1 line
1.1 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>I'm confused on how to get a snippet of elisp to work. I'm trying to do</p> <pre><code>(setq org-refile-targets `(((concat dropbox-dir "/Org/archive.org") :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>(("~/[USER]/Dropbox/Org/archive.org" :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 "/Org/archive.org") :maxlevel . 1)) </code></pre> <p>Which causes a type error whenever I run <code>org-refile</code></p> <p>I'm quite new to elisp, so it's definitely me not understanding how this works. What am I doing wrong?</p> </div><!-- SC_ON -->   submitted by   <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>   <span><a href="https://www.reddit.com/r/emacs/comments/pnysaw/concat_inside_list/">[comments]</a></span> |