Questions tagged [directory]
The directory tag has no usage guidance.
27
questions
0
votes
1
answer
60
views
Emms doesn't play directory tree in OSX
I'm trying to use emms in emacs 29.4 for MacOSX Monterrey. Everything works fine except for playing files in nested folders. Here is my config:
;; MEDIA
;; EMMS
(emms-all)
(emms-default-players)
(emms-...
0
votes
2
answers
100
views
Emacs default directory
I have the following statement in two installations of emacs
(setq default-directory "~/.emacs.d/")
followed by
(load-file "keyboard.el")
One installation finds the file, the ...
0
votes
3
answers
68
views
After package installation, why Emacs kept retrieving an error message on "Creating directory: Operation not supported" subsequent to normal behavior?
I was using this init file on a NixOS machine.
It is important to note that parts of the file were written with use-package and other parts were a legacy from the classic imperative installation of ...
0
votes
1
answer
152
views
How can I get projectile-grep et al to choose the project before searching?
Projectile-grep, projectile-ag et al always execute the search in the current file's project.
What I want to do is to select the project from a completion list and get projectile to search that ...
3
votes
1
answer
1k
views
How to obtain file path from LISP file loaded by command line?
Given you started Emacs passing a LISP file through command line:
emacs --load .custom.d/init.el
how it could be possible to dynamically obtain custom.el directory location?
Since the default init....
2
votes
2
answers
984
views
How to make a temporary directory that gets deleted once the body is finished?
Is there a way to temporarily create a new directory, then remove it when the body of the code has finished?
(with-temp-directory path
(write-test-files-into path)
(other-test-functions path))
;...
11
votes
1
answer
8k
views
How to open a folder as project in emacs?
VSCode (and other graphical editors) allow you to open any folder, and all source files in that folder are already tagged such that you can jump to definitions of functions/objects as long as the ...
0
votes
1
answer
59
views
How to get all full path list by a folder name?
I want to get all the full path by a folder name called autoload, in my config i had split it like this file structure.
├── init.el
├── packs
│ ├── +completion
│ │ ├── ivy
│ │ │ ├── ...
4
votes
1
answer
846
views
How can backup-directory-alist be set to save in the files directory?
I want the backup files to be created in sub-directories of the files being edited, and I have created a function returns that directory.
(defun tempfilepath ()
(interactive)
(concat (file-name-...
1
vote
1
answer
39
views
Relative directory Logic
I've used emacs in various configurations over the years, but the one aspect I couldn't find a good proxy for is relative directory logic.
My goal is to use evil-mode + web-mode. I'm not interested ...
0
votes
2
answers
1k
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
4
answers
348
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 ...
5
votes
2
answers
2k
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
2
answers
321
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
1
answer
123
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
1
answer
911
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
1
answer
582
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
3
answers
580
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
2
answers
1k
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:
- ...
3
votes
2
answers
199
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
1
answer
130
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
0
answers
219
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
3
answers
6k
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
1
answer
118
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
1
answer
204
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 ...
3
votes
1
answer
631
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
1
answer
196
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 ...