Kris
Kris

Reputation: 1423

Automatically opening a file in emacs by specifying the file name

I created a TAGS file for emacs in my django project using the following command on my Linux machine

ctags -eR *

I can now jump to a symbol definition using M-. and specifying the symbol name.In my project i have py,html and css files so is there also a way i can make emacs automatically open a file, if i specify the file name ?.

Thank You

Upvotes: 2

Views: 274

Answers (4)

kindahero
kindahero

Reputation: 5867

I think you are looking for project management. There are few packages to manage project directory in emacs. The best one may be ede. but Its not easy to setup. It does have some learning curve and its limitations.

Thankfully there are many easy ones. like eproject. https://github.com/jrockway/eproject/wiki

anyway you can also check out emacswiki page for more details. http://www.emacswiki.org/ProjectSettings

Upvotes: 3

ddaa
ddaa

Reputation: 54464

From the comments, I figured that you are looking for has nothing to do with tags, you just want a better find-file that makes good automatic guesses for the path given only the file name.

For this, I use the entirely awesome ido-mode: http://emacswiki.org/emacs/InteractivelyDoThings

Upvotes: 0

rbp
rbp

Reputation: 45020

IDO (Interactive Do) mode does this. If you activate it, C-x C-f searches for files matching what you are typing, interactively. Beware though, it may take some time to get used to it.

[edit] The search is based on files or directories you've recently visited, and you can use M-s to force a search.

Upvotes: 0

Related Questions