help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for CDPATH functionality in emacs.


From: Thien-Thi Nguyen
Subject: Re: Looking for CDPATH functionality in emacs.
Date: Mon, 03 Jan 2011 20:08:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

() "Steven W. Orr" <steveo@syslang.net>
() Mon, 03 Jan 2011 13:55:01 -0500

   1. Does anything already exist that smells like what I want?

Probably smells regardless, but FWIW, i use ‘jamenv-from-file’
(attached) with a ~/.directory-env-vars that looks like:

--8<---------------cut here---------------start------------->8---
;;; -*- emacs-lisp -*-
;;; comments start with ";"
;;; lines of form "- VAR" clear env var VAR
;;; lines of form "VAR VALUE" set env var VAR to VALUE

;; clear
- OLDPWD
- PAGER
- PWD

;; set
D               ~/build/tastiera-dura
G               ~/build/GNU
GG              ~/build/GNU/GG
--8<---------------cut here---------------end--------------->8---

Then, to get to, say ~/build/GNU, i type ‘C-x C-f $G RET’.

Attachment: jamenv.el
Description: application/emacs-lisp


reply via email to

[Prev in Thread] Current Thread [Next in Thread]