Questions tagged [session]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
28 views

How to use `recover-session` and `dired-omit-mode`?

I have enabled dired-omit-mode globally with (add-hook 'dired-mode-hook #'dired-omit-mode). When using recover-session, I don't see any files. How to fix this? Creating a .dir-locals.el containing ((...
1
vote
0answers
41 views

Reading frame configuration from file

I'm just trying my hands on emacs lisp. So far I've had some luck, but I'm stuck trying to load my frames configuration into a list. Here's what I'm trying to do... I am saving frames configuration (...
0
votes
0answers
38 views

Save whole emacs session

After closing emacs I would like to restore the same session I left, which includes opened windows, font sizes within the windows and open buffers. I'm aware there's a lot out there, but most things ...
5
votes
2answers
111 views

How to play back an edit session in emacs?

The book Clean code says emacs can play back an edit session (page 13): You could work for an hour and then play back your whole edit session like a high-speed movie. When I did this, the results ...
2
votes
1answer
638 views

Org-babel Python with :session

I don't know what happened with org-babel and Python recently. My intuition and my experience with preparing lectures last year was that the :session option would cause Org Mode to capture all the ...
1
vote
0answers
40 views

how can I see the result of 'ping -c 5 127.0.0.1' live using org babel session

https://github.com/whacked/ob-shstream/blob/master/ob-shstream.el There's an add-on for org babel that let's you see streaming output of bash shell blocks. It's documentation reads like this: ;; the ...
2
votes
1answer
75 views

Save *everything* across sessions

When I quit Emacs, nothing is saved, such as my search history, my command history, my replace strings, etc. I want EVERYTHING saved. How do I do that? And by everything, I mean at least the ...
0
votes
0answers
32 views

Temporarily save modified buffers

I would like to achieve the following workflow: When I open files to edit and close emacs, I want this changed files to be temporarily saved, so that I can very quickly close Emacs / move to other ...
3
votes
0answers
52 views

How to have desktop-mode restore only the <n> most recently used buffers

I currently have in my config: (desktop-save-mode 1) (setq desktop-restore-eager 10) Which on startup, will eagerly restore 10 buffers, and then when Emacs is idle, restore all the others. Is there ...
1
vote
1answer
200 views

Save and load different desktop files based on the mode

I would like to keep distinct desktop files in order to be able resume sessions based on the mode. When I open Emacs it should load the desktop file for the mode it starts with and when I run, say, M-...
2
votes
1answer
388 views

How to make emacs prompt yes or no to save the session when desktop-save-mode is on?

I started to use emacs a few days ago and still getting the hang of it. desktop-save-mode is really handy at times as I don't have to reopen all the files that I had already opened in my previous ...
9
votes
4answers
717 views

One window per project

I am working on several projects right now. I want a single instance of Emacs to handle them all. What I want is a tmux-like behavior wherein every 'window' (in the Emacs sense) corresponds to a ...
6
votes
1answer
472 views

Emacs freezes with any org-babel snippet using `:session`

I removed my .emacs and .emacs.d, then created a new .emacs consisting of only the essential to use R and a shell with org-babel to make sure my configs weren't causing this: (require 'org-install) (...
2
votes
2answers
527 views

Error on reopening files from previous session via desktop-save-mode

I like my Emacs to reopen all previously opened files when I start it up. My setup is simple: ;; save desktop autosave sessions (setq desktop-dirname "~/" desktop-base-file-name ...
5
votes
1answer
681 views

desktop-save-mode fails to save window layout

I use Emacs 24.5.1 on OS X in terminal mode. I intend to use desktop-save-mode to save and restore window layout (i.e. positions of buffer windows) upon exiting and starting Emacs. From this answer ...
2
votes
1answer
449 views

Org mode: execute region in session

I'm looking for an easy way to highlight a chunk of text inside a Babel source block (not the entire block) and execute that inside the current session (creating the new session buffer if necessary). ...
3
votes
0answers
188 views

Do I need session mode if I use desktop mode?

I found old mail in my mailbox: Date: 2010-09-13 17:41:21+0300 Mon (require 'session) (add-hook 'after-init-hook 'session-initialize) Now I am using desktop mode: (setq desktop-base-file-name "....
4
votes
2answers
1k views

How can I get sessions.el to save my registers?

I am trying to get session to work, and I am especially keen on having my registers persistent between sessions. I installed the package sessions.el via Melpa (M-x list-packages) and I added this to ...
2
votes
1answer
2k views

What is causing this error: “Cannot open load file, no such file or directory, session”?

From time to time my Emacs doesn't load my init file at startup and gives me the following error message: File error: Cannot open load file, no such file or directory, session To ensure normal ...
12
votes
2answers
1k views

Session files in emacs.d folder

There are files like session.10110ac205e127d7e2143131143297155100000021880037 in my .emacs.d folder. I would like to do something about it but could not figure out what to do. What are these files ...
12
votes
3answers
2k views

Persistent shell-command history

When I run shell-command in a new session I do not have access to the history of commands from the last session. How can I have that?
9
votes
2answers
661 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/...
0
votes
1answer
424 views

Emacs ZNC-ERC: How to make Customize save my preferences for all sessions

I am setting up my ERC client to connect to my ZNC IRC proxy server, and I am following this Emacs wiki. At the following step: ;; Configure M-x customize-group znc RET I am in the Emacs customize ...
7
votes
2answers
2k views

How do I save a cursor position?

How can I save the cursor position for every file I have opened? So, next time I open the file, the cursor will be at the position I last opened it.
18
votes
4answers
7k views

How to setup default windows at startup?

Every time I open up Emacs I tend to set up 3 windows by doing C-x 3 (split-window-right) and then C-x2 (split-window-below). After that I have to switch to each window to open the files I want to ...
17
votes
1answer
989 views

How can I restart emacs and preserve my open buffers and interactive history?

As a follow-up to What's the fastest way to reload my .emacs file when I make changes so all my affected buffers will pick up those changes? It was suggested that the restart question should be ...
27
votes
2answers
2k views

What's the fastest way to reload my .emacs file when I make changes so all my affected buffers will pick up those changes?

I'm aware of C-x C-e which is eval-last-sexp and M-x eval-buffer, but these aren't always sufficient to pick up all changes. Sometimes you need to actually close buffers that are in the modes who have ...
11
votes
1answer
1k views

Using DeskTop for basic project management

I would like to use DeskTop for basic project management, i.e. opening a set of buffers and restore histories depending on the project I am working on. Is this possible, i.e. having one desktop file ...