Questions tagged [persistence]
Questions involving saving parts of Emacs' state to disk
20
questions
1
vote
0
answers
83
views
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?
1
vote
1
answer
126
views
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 ...
1
vote
2
answers
190
views
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.
...
3
votes
1
answer
116
views
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)
(#<window-...
0
votes
4
answers
157
views
How to make changes on variables' values be persistent over sessions?
The current question is related to a previous question which is still not fully solved.
I have been doing the following:
1 - After executing describe-variable over exec-path, I get:
("/opt/...
1
vote
1
answer
187
views
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 ...
1
vote
1
answer
358
views
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 ...
1
vote
1
answer
376
views
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") ...
0
votes
1
answer
683
views
How to have folding and unfolding of headers in orgmode file persist through emacs sessions
Suppose I open an orgmode file and fold and unfold a bunch of headers, is it possible to let the folds and unfolds be the same next time I open emacs.
I feel the startup function wont be enough.
#+...
0
votes
1
answer
236
views
Persist variables (and maybe input history) across restarts [duplicate]
Sometimes I wish to persist the value of some variable when I quit emacs. For example, I would like to do this for compile-command.
Now, I guess I could find the hook that is run when Emacs quits (...
1
vote
3
answers
212
views
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" ...
0
votes
1
answer
37
views
How can I persist my compile ring
I would like to persist my compile-ring, by which I mean the history of compile commands I use, between emacs sessions. Is there a simple way to accomplish this?
6
votes
2
answers
987
views
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 ...
2
votes
1
answer
111
views
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, ...
1
vote
0
answers
119
views
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 ...
8
votes
2
answers
1k
views
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 ...
6
votes
1
answer
657
views
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 ...
0
votes
1
answer
65
views
list data structure split across files?
If I were trying to use a list as a data structure -- and it was getting really big -- is there a precedent of breaking it up and having it span files? One particular list of mine is looking very tree-...
8
votes
2
answers
6k
views
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 ...
11
votes
2
answers
2k
views
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/...