Skip to main content

Questions tagged [directory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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-...
Irbin B.'s user avatar
  • 131
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 ...
balanga's user avatar
  • 135
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 ...
Pedro Delfino's user avatar
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 ...
vfclists's user avatar
  • 1,445
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....
JP Ventura's user avatar
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)) ;...
ideasman42's user avatar
  • 9,025
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 ...
archmuon's user avatar
  • 153
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 │ │ │ ├── ...
xiaodong huan's user avatar
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-...
vfclists's user avatar
  • 1,445
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 ...
Tom's user avatar
  • 215
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-...
Thomas Matthews's user avatar
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 ...
sidharth arya's user avatar
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 ...
Lorem Ipsum's user avatar
  • 4,547
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 ...
Alex Eftimiades's user avatar
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
Vaibhav's user avatar
  • 583
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?
Vaibhav's user avatar
  • 583
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-...
innumeratus's user avatar
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 ...
wolfv's user avatar
  • 1,423
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: - ...
azzamsa's user avatar
  • 644
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 ...
map7's user avatar
  • 553
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") ...
Ari's user avatar
  • 339
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 ...
GLRoman's user avatar
  • 146
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....
Josh Pinto's user avatar
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 ...
Carl Roberts's user avatar
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 ...
ivanm's user avatar
  • 107
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:...
elethan's user avatar
  • 4,875
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 ...
user2237076's user avatar