Emacs Asked by fraxture on September 2, 2021
I’ve just started to use org-mode in emacs (spacemacs). One simple thing that is confusing me is how to quickly access my org files. What is a solid and simple strategy for quickly pulling up a list of org files?
By way of example, let’s say I have a directory where I store org files (though the solution I’m looking for would hopefully work for multiple directories). I want to be able to quickly access that directory, search for a specific file, and load it. How would I do that?
The functionality I am thinking of here is similar to that the the projectile
project provides for a coding project…
Emacs provides a lot of different ways to quickly find files, and even more are available with add on packages. For your specific case, finding org
files in a particular directory, you could use the built-in ido-find-file-in-dir
:
(ido-find-file-in-dir "~/org/")
Running this command will open an interactive file selection dialogue in the "~/org/" directory. You'll see a list of all the files that are present, and you can progressively narrow that list by typing in part of the name you are looking for.
If that's good enough, you'll need to create a keybinding:
(defun my-org-finder ()
(interactive)
(ido-find-file-in-dir "~/org/"))
(global-set-key (kbd "C-c f") 'my-org-finder)
The sky is the limit here. If you have a specific requirement, be explicit, and there will likely be something available for you.
Correct answer by Tyler on September 2, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP