Questions tagged [persistence]

Questions involving saving parts of Emacs' state to disk

Filter by
Sorted by
Tagged with
1 vote
1 answer
63 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 ...
user avatar
  • 59
1 vote
1 answer
104 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 ...
user avatar
0 votes
1 answer
111 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") ...
user avatar
0 votes
1 answer
151 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. #+...
user avatar
0 votes
1 answer
102 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 (...
user avatar
  • 317
1 vote
3 answers
130 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" ...
user avatar
0 votes
1 answer
28 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?
user avatar
6 votes
2 answers
773 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 ...
user avatar
  • 185
2 votes
1 answer
72 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, ...
user avatar
1 vote
0 answers
105 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 ...
user avatar
8 votes
2 answers
922 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 ...
user avatar
  • 1,045
6 votes
1 answer
548 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 ...
user avatar
  • 845
0 votes
1 answer
63 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-...
user avatar
  • 2,717
6 votes
2 answers
5k 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 ...
user avatar
  • 2,717
11 votes
2 answers
1k 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/...
user avatar
  • 409