Questions involving saving parts of Emacs' state to disk
Questions tagged [persistence]
20 questions
11
votes
2 answers
How to Persist Evil Markers?
I want to be able to save my buffer local evil markers (m to mark a location and then ' or ` to jump to it) across emacs sessions/instances. I'm not really sure how to do this. I tried installing/using session and adding them like so:
(add-to-list…

noctuid
- 429
- 3
- 11
8
votes
2 answers
persistent org-mode clock-in history
Is there a way to make the list of recently clocked-in tasks in org-mode persistent across Emacs restarts and (more importantly) closed buffers? It's annoying having to find the previous task just because I happened to exit a file.

unhammer
- 1,127
- 8
- 22
8
votes
2 answers
How to do a simple write to file
I simply need to take the output of org-element-parse-buffer and put it in a file -- maybe with some "if-does-not-exist" etc. bells and whistles. In CL I have with-open-file and write as tools. For example, here's CL to read a file containing lines…

147pm
- 2,907
- 1
- 18
- 39
6
votes
2 answers
Make pdf-tools remember the page I was on
How to make pdftools remember the page I was on when I close a PDF document, restart Emacs and reopen the PDF? Some PDF readers after opening a document go to the last page the user was on and don't start from the beginning, I'd like Emacs to do the…

Alex
- 197
- 1
- 7
6
votes
1 answer
How to store the variable value after Emacs was closed
Suppose, we have a variable defined in ~/.emacs:
(defvar *my-var* "")
Then in **scratch** buffer we set some value to it:
(setq *my-var* "value")
After we close emacs the value will be lost. How can we store the value to disk and read it again…

user4035
- 1,039
- 11
- 24
3
votes
1 answer
How do you serialize a window-configuration?
Suppose I used C-x r w to run window-configuration-to-register, and suppose I saved it to the register k. Later, when I read back the register, I get this.
ELISP> (get-register ?k)
(# #)
Is there any…

g-gundam
- 1,096
- 1
- 3
- 13
2
votes
1 answer
Can I save my place in an info file?
I am reading through An Introduction to Programming in Emacs Lisp in an emacs buffer. I get to the file through C-h i and navigated to Emacs Lisp Intro. If I kill the buffer and return the same way, it takes me back to the table of contents. I have…

lookyhooky
- 949
- 7
- 18
1
vote
0 answers
Is there a way to save layouts for Tab Bar Mode?
I have multiple tab workspaces open. And it would be a shame if I had to open and organise them like this every time I start emacs or restart my computer.
Is there a way to save layouts?

Vinn
- 263
- 2
- 7
1
vote
1 answer
Make fido-mode remember which command I chose
I've been happy to replace smex with fido-mode in emacs 28, as fido-mode generally has much nicer behavior. However, one thing that I miss from smex is that smex would remember which strings correspond to which commands and persist them, so that the…

asmeurer
- 1,552
- 12
- 30
1
vote
2 answers
save a specific layout
I am pretty new to emacs (doom-emacs in this case) and I have an idea of what I want to do, but not sure how to do it.
What I am after is that when I open a .js file, I want to split my window into 3.
one small window on the left where I want to run…

munHunger
- 125
- 3
1
vote
1 answer
Setting new values in `org-refile-target` not working
I'm trying to add a new file foo.org and delete an old bar.org from the org-refile-target variable. So doing
(setq org-refile-targets (quote (("~/foo.org" :maxlevel . 2))
should work by replacing the former
(setq org-refile-targets (quote…

Daniel
- 99
- 9
1
vote
1 answer
I need to restore the *scratch* buffer from the last time I used emacs even though I killed it and had to restart
I was using emacs (XEmacs actually) and using the scratch buffer to experiment with regular expressions for a regex-replace operation that was giving me trouble. That has nothing to do with the problem, just setting the context.
A power failure…

Byron Dom
- 33
- 4
1
vote
1 answer
How to make buffer order in tab-line persistent?
I'm using global-tab-line-mode, and I would like the order of tabs to persist.
Say my buffer/tab order is:
| a.el | b.el | c.el |
and b.el is the current buffer.
If I call (find-file "a.el") the tab order will change to
| b.el | c.el | a.el |
I find…

randouser
- 91
- 7
1
vote
3 answers
Howto cache completing-read inputs
Is there a simple framework for making previous inputs of completing-read persistent across emacs restarts?
For instance if I start with:
(completing-read "test:" '("a" "b") nil nil) and enter "c" the next time I start emacs and execute I want the…

Konrad Eisele
- 245
- 1
- 8
1
vote
0 answers
Why doesn't desktop-save-mode persist neotree?
Desktop-save-mode seems to save all windows except neotree - When I restart emacs, the neotree window is always gone. Why is this window different from the others? Is it possible for neotree's state to persist like everything else?

Chris Martin
- 121
- 4