Questions tagged [find-file]

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

26 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
156 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---| |----|----| -> ...
3
votes
1answer
519 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
31 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
139 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
425 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
0answers
29 views

find-file-hook when visiting file literally

I'm trying to hook into find-file-literally to turn off some global minor modes when visiting a file literally (which I usually do for large files). However, it does not appear that find-file-hook is ...
1
vote
0answers
21 views

Multi-directory tab completion for find-file?

I am frequently diving through many layers of directory hierarchies (thanks, Java) to find files named like this… java/test/com/company/thing/test/testy/testier/testier/Tester.java The main issue ...
1
vote
1answer
141 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
187 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
37 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 ...
1
vote
0answers
236 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
30 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
325 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
29 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
56 views

Disable `icomplete` with Emacs `find-file`

I have been experimenting with various completion frameworks in Emacs. I am currently using consult together with icomplete. I like the way things are working for me but I would like to disable ...
0
votes
1answer
52 views

How to open a file in other window in the middle of function run?

I use notmuch to read emails. I've configured notmuch to call offlineimap via pre-new hook. When I press G to refresh my notmuch buffer, I want emacs to open my offlineimap log file in another window ...
0
votes
0answers
57 views

Windows File open SLOW

Windows 10 Emacs 27.1 From C-x C-f File Till seeing the file actually open can take almost a minute! Tried emacs instead of runemacs. Also Menu-file-visit All the same I think there's some Mcafee ...
0
votes
1answer
105 views

C-x C-f, Cannot complete file name for desktop folders

I am new to Emacs. I am trying to access a file in the "Emacs" folder on my desktop. I run the C-x C-f command, then type ~/Desktop/Em. I then hit TAB, but there's no completion. Emacs says [...
0
votes
2answers
57 views

Unable to find files with ssh and environment variables

I have installed exec-path-from-shell as well as included the following in my init.el (when (memq window-system '(mac ns x)) (exec-path-from-shell-initialize)) within my ~/.bash_profile I have ...
0
votes
1answer
52 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
69 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
72 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
138 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
70 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
83 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....