Skip to content

Animeshz/emacs-chdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emacs-chdir

Syncs /proc/self/cwd of emacs process with changes to (default-directory).

Package doesn’t needs any trigger, as soon as included will start working immediately.

Installation

Installation using elpaca:

(use-package chdir
  :elpaca (chdir :host github :repo "Animeshz/emacs-chdir"
                :files (:default "chdir.el" "chdir-core.so")
                :pre-build ("make" "all")))

Alternatively, you can use my nix derivation and install it with home-manager.

Or build nix-derivation directly:

nix build 'github:Animeshz/linux-desktop#emacs-chdir'

Motivation

I use pwd-launch script to wrap launch of various applications. That allows them to open where the active/focused X window is currently.

Emacs was not updating its /proc/self/cwd which led my applications to launch where emacs was first launched, not where it currently is. This package provides chdir() syscall to sync the /proc/self/cwd with changes to (default-directory elisp variable.

About

Syncs /proc/self/cwd with changes to (default-directory).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published