Skip to content

question: how to modify the *tmp* buffer to /tmp directory instead of home directory. #1585

Answered by vindarel
sakurawald asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, this buffer is named the "primordial" buffer.

(defparameter +primordial-buffer-name+ "*tmp*")

AFAIK its directory is set to the current working directory (function buffer-directory in buffer.lisp), so if you start Lem from home it's going to be set to home.

I don't think of a one-liner to change this right now but maybe look at

(defun primordial-buffer ()
  (make-buffer +primordial-buffer-name+))

and call make-buffer early in your init file, and use its :directory key argument. If a buffer of that name already exists, the above function will reuse it.

Or start Lem from /tmp.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sakurawald
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1584 on November 04, 2024 00:49.