Questions tagged [persistence]

Questions involving saving parts of Emacs' state to disk

Filter by
Sorted by
Tagged with
0 votes
1 answer
75 views

Is it possible to save register values and restore them in another session?

I use registers (such as C-x r s 0) as a multi-valued clipboard that can save different contents (copy-to-register). Then I can "paste" the value using C-x r i 0. This is really convenient, ...
tinlyx's user avatar
  • 1,346
1 vote
0 answers
147 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?
Vinn's user avatar
  • 293
1 vote
1 answer
203 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 ...
asmeurer's user avatar
  • 1,582
1 vote
2 answers
350 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. ...
munHunger's user avatar
  • 125
3 votes
1 answer
174 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-...
g-gundam's user avatar
  • 1,281
0 votes
4 answers
268 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/...
Pedro Delfino's user avatar
1 vote
1 answer
256 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 ...
Daniel's user avatar
  • 99
1 vote
1 answer
540 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 ...
Byron Dom's user avatar
4 votes
1 answer
510 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") ...
randouser's user avatar
  • 141
0 votes
1 answer
1k 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. #+...
Arya Kiran's user avatar
0 votes
1 answer
295 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 (...
AnoE's user avatar
  • 408
1 vote
3 answers
254 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" ...
Konrad Eisele's user avatar
0 votes
1 answer
40 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?
Spacemoose's user avatar
6 votes
2 answers
1k 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 ...
Alex's user avatar
  • 363
2 votes
1 answer
119 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, ...
lookyhooky's user avatar
1 vote
0 answers
123 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 ...
Chris Martin's user avatar
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 ...
unhammer's user avatar
  • 1,159
6 votes
1 answer
690 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 ...
user4035's user avatar
  • 1,059
0 votes
1 answer
68 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-...
147pm's user avatar
  • 2,969
8 votes
2 answers
7k 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 ...
147pm's user avatar
  • 2,969
12 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/...
noctuid's user avatar
  • 439