Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [directory]

The tag has no usage guidance.

0
votes
1answer
34 views

File-missing “No such file or directory” “c:/emacs-26.1-x86_64/bin/%HOMEDRIVE%%HOMEPATH%/”

I'm launching Emacs using runemacs on Windows 7, from the emacs directory (C:\emacs-26.1-x86_64\bin), using runemacs --debug-init. I get the following error text: Debugger entered--Lisp error: (file-...
2
votes
4answers
79 views

How to find a directory with given depth from current directory?

Is it possible from within Emacs to find directories with a given depth from the current directory from within Emacs and receive their respective location in form of a list? I want it to work cross ...
3
votes
2answers
180 views

Set a global default directory

I want a "default directory" which is constant across all contexts (buffers, packages, etc). That is, when working on multiple files, opening a new terminal, doing anything which requires a starting ...
0
votes
2answers
24 views

Split window with new buffer and spawn a new shell in same (possibly remote) directory as old buffer

In tmux, I can press some key combination and split the current window into two windows in the same directory. I've tried the split-window-* function, but found it just duplicates the same buffer in ...
1
vote
1answer
40 views

Printing a list of folders which has been modified today

Is there any way to export a list of folder names which has been modified today using a dired mode or any other package on emacs
0
votes
0answers
60 views

How can I set a directory buffer in one window to open files in another window?

The setup I am going for would look something like this: ------------------------------ | | | | | B | | | | | A |----...
0
votes
1answer
121 views

Open emacs in Dired mode

I would like to open emacs in dired mode . files and folders should be organised in most recent file first order. Moreover I would like to highlight the Org files for easy selection. Is this possible?
0
votes
1answer
166 views

Tutorial Exercise - C-x C-s Save — Write Protected issue in OSX

I'm making my way through the tutorial and have run into an issue when trying to do the exercise on saving a file: Saving file /~TUTORIAL... basic-save-buffer-2: Directory / write-protected Auto-...
3
votes
3answers
224 views

Open Dired for an arbitrary set of files

There is a project with 100 files in a flat directory. I want to navigate a subset of the files, depending on what part of the project I am working on. Creating files with links to files of interest ...
2
votes
2answers
313 views

How to import directory structure to org-mode heading?

I can show directory structure in emacs using M-! tree --dirfirst according to the answer here. But how to import a directory structure to emacs or org-mode heading ? I want to have like: - ...
0
votes
0answers
40 views

why has my emacs grep command started to search always in my home directory?

Up until a few weeks ago, I was able to use emacs grep to search files in the same directory as the file in the currently active buffer. If I searched recursively, the starting directory would also be ...
3
votes
2answers
53 views

Create a directory when a file has a similar name

I'm using ivy-mode and when I try and make a directory and it has the same sort of name as an autocomplete then the directory will not be made. eg: if I have webapp.pdf and I want to create a ...
1
vote
1answer
39 views

How to Filter Directory Contents?

How can I filter directory contents to return the highest numeric named directory? For example, suppose (directory-files "/some/dir") returns: ("." ".." "4.03.0" "4.02.9" "archives" "config" "log") ...
1
vote
0answers
97 views

`pushd` command for shell buffer

In an interactive shell, I have a script I run that changes my directory (via pushd) and then launches an interactive program. At this point I issue M-x cd and provide Emacs with the new directory ...
0
votes
3answers
866 views

How to get Emacs to automatically open a specific directory on startup?

I would like Emacs to open the folder $HOME/Documents/CodeLite/CPP-Math-Projects/Simple-Pendulum on startup and show it in the directory browser. Is there a way to do this? I have read https://www.gnu....
1
vote
1answer
71 views

How do I control the directory that emacs starts in?

M-x dired = defaults me to C:\emacs\bin/ C-x d = defaults me to C:\home\files\ My init file is in C:\home\ and seems to work. I have read the relevant manual sections several times, and I can't ...
0
votes
1answer
70 views

Tramp and non-existent directories

When I create a new file in a (currently) non-existent directory, the echo area displays: Use M-x make-directory RET RET to create the directory and its parents which I plan on doing as soon as ...
4
votes
1answer
199 views

Set default-directory relative to the place an Elisp function is defined

I have some custom elisp functions that need to run shell scripts using shell-command. I would like to use a relative path to the script, e.g.: (shell-command "./run.sh") rather than an absolute one:...
1
vote
1answer
90 views

Navigate cwd in lisp

I want to write some lisp that will take the cwd, and keep traversing up the dirctory tree until it finds a file (in this case config.rb) then when it finds it I want to parse the contents (in this ...