Questions tagged [find-file]

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

Filter by
Sorted by
Tagged with
3
votes
2answers
645 views

Exclude dot-files from the find-file Completion List

When I run the find-file command and hit the tab key twice without giving anything, I get the Completion List of my, for instance, home directory. By default it lists everything inside, including the ...
4
votes
1answer
601 views

How to set the coding system for new files with specific extensions

When I visit a new file, ^xf, that has an extension of .sql or .dsql I would like the coding system to be set to utf-8-with-signature-dos. The default is currently iso-latin-1-dos. I'm running (...
1
vote
1answer
457 views

Load a file into a buffer without changing the display

I have a use-package idle hook that loads my org files into buffers for future use. I want this to be unobtrusive. However, I cannot find any find-file function which loads a file without changing the ...
4
votes
2answers
527 views

How to use find-file with wild-cards non-interactivley?

In this post it talks about opening org files via find-file. I'm trying to do this non-interactivley. I try calling: (find-file "~/git/LeoUfimtsev.github.io/org/" "*.org") But instead of opening ...
3
votes
3answers
193 views

Running out of L:/ etters: shortcut for path needed

I'm working with files which are stored on a server. The structure on the server is: //SBS/share/path/to/somewhere/2007/ //SBS/share/path/to/somewhere/2008/ //SBS/share/path/to/somewhere/2009/ ... //...
4
votes
1answer
2k views

transparently find file over ssh in *shell* directory

I ssh'd into a remote server from shell and tried to open a file on a directory path that also exists on my local system. The list of files I was able to open using helm-find-files was the list on my ...
5
votes
3answers
771 views

Load all org files into buffers?

I've got a couple dozen org files that I'd like to have loaded at once. They're in a directory structure something like this: org/dev org/dev/python.org org/dev/emacs.org ... org/dev/ios org/dev/ios/...
2
votes
1answer
138 views

Reloading files from disk in frame with emacsclient

This may be user error, but if I open a file with emacsclient -c file.tex then if I try to reload the file using C-x C-v, then I get the usual Find alternate file: but if I press enter on that, I ...
3
votes
1answer
247 views

Tell Dired to ignore file-at-point when invoking `ido-find-file` (`C-x C-f` in Ido mode)

I have discovered that a recent update to some of my emacs packages have caused C-x C-f while on a dired file to perform some operation on the entire file before prompting me for other files/...
1
vote
1answer
300 views

docview: suppress “File X is too large, really open?” confirmation

Is it possible to avoid the "File X is too large, really open?" confirmation? If not, would it be possible for Emacs to remember my answer the first time I visited a large file? If I visited it once,...
3
votes
1answer
888 views

auto-insert a skeleton and run a function when creating a new file

auto-insert-alist by default matches files created in .../bin/ directories and enables sh-mode. There are examples on the wiki showing how to use a skeleton to insert some text, but I want to both ...
3
votes
1answer
238 views

`find-file-hook` problem for large buffer that is just one long line

I got a file(for instance, ~/.mozilla/firefox/xxx.default/sessionstore-backups/recovery.bak) that its content is one whole line and size of over 1MB, if I open it in Emacs, Emacs will become very ...
46
votes
6answers
11k views

How to use an external program as the default way to open PDFs from Emacs?

When I M-x find-file a PDF, it is opened in Emacs. While this is nice, Emacs' PDF viewer lacks many features that I need and I would prefer to open PDFs in an external program instead. How can I ...
12
votes
5answers
2k views

Recently opened files in ido-mode

I use ido-mode, but one thing I hate about it is that after C-x C-f I cannot use up/down keys to cycle through recently opened files, as it used to be for example with iswitchb. How can I set ido to ...

1 2
3