Questions tagged [find-file]

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

23 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
83 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---| |----|----| -> ...
2
votes
1answer
393 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
28 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
130 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
416 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
29 views

list files in directory in reverse order of date

When finding files with Ctrl-x Ctrl-f and then pressing Tab, to list the file completion names, is there a way to list these files in reverse order of their dates (when they were last edited)? ...
1
vote
1answer
51 views

How to use helm to find files that match regex in subdirectory?

I had this functionality working until I recently revamped my init files. Now, I can't figure out how to get it back. I use helm-find-file (mapped to C-x C-f) for finding and opening files. I used ...
1
vote
0answers
72 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
134 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
23 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
286 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
0answers
27 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
6 views

find-file using ido exact word pattern search

I was using regular find-file, where when I type e and press tab it will suggests files that are starting with e. I have enabled: (ido-mode 1). I realize when I type e and press two times tab (I do ...
0
votes
1answer
19 views

How to delete backward word in find-file using ido?

I was using regular find-file, and have a current setup to delete a word, which was working inside find-file. (defun backward-delete-word (arg) "Delete characters backward until encountering the ...
0
votes
1answer
37 views

Opening files in new frame

I'm using a fairly frame-oriented workflow (or trying to). I've run into something strange. If I write this: (defun find-file-existing (filename) "Edit the existing file FILENAME. Like \\[find-...
0
votes
0answers
29 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
19 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
83 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
67 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
132 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
68 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
72 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....