Questions tagged [session]
The session tag has no summary.
46 questions
0 votes
0 answers
36 views
automatically recover last session when it has unsaved files
Occasionally it happens that I forget to start recover-session after a crash. I would like to automate the following: each time Emacs starts up, check if there are unsaved files in the last session, ...
1 vote
1 answer
93 views
TextIOWrapper error when trying to pass strings between Python session code blocks
This worked seamlessly, but at some point, I lost the ability to pass string-type variable values between code blocks in Org Babel. Let’s take the following example: #+begin_src python :session *PY* :...
0 votes
1 answer
44 views
Session-specific bookmarks (e.g. via `desktop-save`)
I use emacs's session-capabilities (i.e. desktop-change-dir and desktop-save-in-desktop-dir) to persist various sessions across different projects where each one has its own “.emacs.dektop”-file. I ...
1 vote
0 answers
145 views
Automatically recover auto save file when opening it
I'd like my Emacs to perform this way: when opening a file its buffer is automatically reverted to its latest auto save file without saving it. I'd like the same to happen for all the files which get ...
0 votes
0 answers
36 views
Org babel R sessions setwd value
If I make a new org file: #+begin_src R getwd() #+end_src #+begin_src R :session getwd() #+end_src When I execute the first block, I do not get asked for the "R starting project directory&...
0 votes
0 answers
87 views
using desktop.el in --daemon mode
I eventually figured out that the answer to this question https://groups.google.com/g/gnu.emacs.help/c/WZoW0LlqX6c/m/08Sa6alHp1oJ was to choose --bg-daemon rather than --fg-daemon when starting the ...
0 votes
1 answer
348 views
Setting (desktop-save-mode t) in init file calls (desktop-read) immediately when starting Emacs in daemon mode. How to avoid?
Previously, I used GUI Emacs, everything worked perfectly - the desktop was saved and restored as it should be. I decided to try Emacs in daemon mode. First I made changes to the init.el file: (custom-...
0 votes
0 answers
193 views
desktop+ not saving term/shell buffer
For session management, I was happy with inbuilt desktop.el except that it could not retain the term/shell buffers. Everytime I quit emacs, it asked to kill the term/shells. Then I read the ability of ...
0 votes
2 answers
72 views
how to eval expression in a elisp "session"?
I would like to eval elisp expressions in a "session" so that side-effects only affect expressions which happen in that "session". For instance defuns that are evaluated in the ...
0 votes
1 answer
196 views
How to give command-line arguments (sys.argv) when executing python session in Orgmode
I want to run my python code (that'll eventually become standalone python script) in org-mode. This script requires command line arguments (provided by sys lib's sys.argv). How do I execute python ...
1 vote
1 answer
471 views
How to share context between two code blocks work using sessions?
Based on the examples I've found on :session , I expect the following code blocks to share the same environment: #+begin_src crystal :session foobar :results output # some boilerplate: def echo(word) ...
0 votes
4 answers
520 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/...
0 votes
0 answers
42 views
Bug-hunter finds error but it shouldn't (false positive)
I suspect I'm doing something very stupid but I can't figure out what. I have some problems with Eshell, and I was advised to use Bug-hunter. I installed it through Elpa. When I launch it (M-x bug-...
0 votes
1 answer
147 views
Store sessions on idle and use specific name for each stored session
I usually have multiple instances of doom emacs running (one for every project). I use this line in my config to save the session of each instance after 10 seconds idle time. (run-with-idle-timer 10 t ...
0 votes
2 answers
300 views
use-package session example please
I want to setup session with use-package but I don't know elisp except copying from working code. Here is what I've copied: ;;;_* session (use-package session :if (not noninteractive) :load-path &...