1 line
799 B
Plaintext
1 line
799 B
Plaintext
<!-- SC_OFF --><div class="md"><p>Hi - I'm trying to write a function which will take a filename from a project as user input. This doesn't seem to work. I get `nil` returned for the `filename` variable.</p> <p>​</p> <pre><code>(defun my-test-function() (interactive) (let ((filename (projectile-find-file))) (message (format "Current %s" filename)))) </code></pre> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/PigsDogsAndSheep"> /u/PigsDogsAndSheep </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/r589s8/how_to_use_projectilefindfile_in_a_custom_function/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/r589s8/how_to_use_projectilefindfile_in_a_custom_function/">[comments]</a></span> |