Questions tagged [find-file]

is the most frequently used command for opening files in Emacs.

22 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
287 views

Equivalent to `ido-find-file` functionality for ivy/counsel?

I really like how ido-find-file, if it can’t find a file matching your string (and you’ve let it idle for like a second), will search your whole home directory for files matching that string, and then ...
2
votes
0answers
27 views

How can helm-find-files be adapted to include previously open files, projects etc?

After doing some more search concerning Does the recent files in emacs display files opened in previous sessions? I realize that C-x C-f is bound in my config to helm-find-files. How can helm-find-...
2
votes
0answers
128 views

find-alternate-file and move point

When using find-alternate-file, to refresh the file in the current buffer, point is always moved back to the start of the file. How can I get point to be moved to where I was in the file before ...
2
votes
0answers
414 views

Quickly navigate path with evil-mode's ex commands?

I am new to Emacs. I like how I can easily navigate to a file via helm-mode-find-file in helm. Is there any way to combine any variant of this (helm or otherwise) with evil's ex commands (eg, :e, :sp,...
1
vote
1answer
11 views

Help; how use Persistent Sets of Completion Candidates for search?

I want to use a set of files inside my directory ~/Dokumente to search for changes in title, content. So I saved such a set of file names persistently, using C-} during file-name completion with ...
1
vote
0answers
43 views

Debugging slow find-file performance

Trying to figure out why find-file (C-x C-f) operations are taking a long time on Windows 10 with emacs 26.3. I tried to do profiling and got following results. - command-execute ...
1
vote
0answers
56 views

How to open two files in two frames on startup?

Here's what I'm trying to make happen: on startup, I want emacs to split vertically into two windows displaying two different files, with my to-do list on the left side of the screen and my notes on ...
1
vote
0answers
21 views

Using helm to create a file while in a helm session

I often find myself in a command that queries for a filename e.g. diff-tell-file-name. This command asks me what file to apply a diff to. In my case, often the file does not exist and I would like ...
1
vote
0answers
44 views

How to make find-file-other-window reuse existing window

Is it possible to make find-file-other-window open the file in a pre-existing window instead of creating a new one? Currently: |A---|B---| |A-|C-|B---| |----|----| -> ...
1
vote
0answers
251 views

Emacs 26-1 Problems : find-file and neotree

The Problems: I just did a full re-install to Fedora 29, which included the dnf install emacs command. This installed emacs 26-1; formerly I was using emacs 25.2. Formerly, my emacs initialization ...
1
vote
2answers
1k views

How do I open a file in spacemacs?

Say I have spacemacs open and now I want to launch some sort of file browser to open a file. How do I do it? I have found SPC f f which sort of works but the navigation is quite cumbersome. There is ...
1
vote
0answers
26 views

Find dirrectories paths from a list of names via tramp session

I have a remote host accessing via tramp there is a list of directori names I'd like to find on that host. What I do now - connect to remote server and while read -r name; do find / -type d -name "$...
1
vote
0answers
28 views

find-file opens file but buries its buffer when ECB is activated

I have a hook in my .emacs file that activates ECB when prog-mode entered: (add-hook 'prog-mode-hook 'ecb-activate) When I open the first file that starts a prog-mode, it seems to cause find-file* ...
0
votes
0answers
38 views

How to create a file when it doens't exist in the project?

I've remapped C-x C-f to projectile-find-file since I mostly open files corresponding to the project I'm in. However when I need to create a new file, I fill in the name and projectile doens't find ...
0
votes
0answers
22 views

Is there is an existing parser for `.gitignore` files?

Is there is an existing parser for .gitignore files? Maybe there is some Elisp package that includes something like this? Ideally, I would like to be able to read a .gitignore file in a given ...
0
votes
0answers
17 views

xemacs loading second java file on opensuse

I am having a problem with loading a second java file in xemacs 21.5.34-17.6 on NAME="openSUSE Tumbleweed" VERSION="20190721" The first java file loads with no problem. If I try to load a second ...
0
votes
0answers
59 views

How to resolve symlinks when visiting an individual non version controlled file

Emacs takes care that symlinked files are resolved before visiting a version controlled file. This behavior is set by vc-follow-symlinks, which is by default "ask". One can set it to nil, but even ...
0
votes
0answers
44 views

Emacs cannot find virtual drive defined by MS Windows command `subst`

I am using spacemacs (0.200.13@26.1), but this should be applicable to vanilla Emacs too. The version of Emacs I'm experiencing this issue on is "GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-...
0
votes
0answers
45 views

Error when opening encrypted file

I cannot open my beancount encrypted file; executing M-x toggle-debug-on-error I get the following backtrace: Debugger entered--Lisp error: (wrong-type-argument arrayp nil) file-truename(nil) ...
0
votes
0answers
123 views

can I have swiper and counsel as “add-ons” and not the default binding

I like the powers that counsel/ivy/swiper gives me, specially for C-s and C-x C-f, but since installing it, I've started missing the vanilla emacs C-s and C-x C-f. It would be awesome if I can "call" ...
0
votes
0answers
67 views

Why do I get a different file content when I'm opening it with different Emacs versions on Windows7

I'm opening the very same file with Emacs-24.5 and with Emacs-23.1. But the latter shows me what seems to be an older version of this file! Might this be a bug of in Emacs-23.1? I updated the ...
0
votes
0answers
65 views

ECB Never ask to make buffer read-only

In my current Emacs configuration, when ECB is active and I find-file in a non-existing directory, I keep getting interrupted to answer the following question in the echo-area: File /tmp/new-foo/bar....