Questions tagged [session]

42 questions
27
votes
2 answers

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 had their configuration changed, and other times…
b4hand
  • 1,995
  • 1
  • 19
  • 31
20
votes
4 answers

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 edit. How can I set this to be done…
El Diego Efe
  • 1,601
  • 1
  • 19
  • 24
18
votes
1 answer

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 asked separately. Is there an easy way to reopen all…
b4hand
  • 1,995
  • 1
  • 19
  • 31
17
votes
2 answers

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 for ? Why emacs generate multiple files ?
Rangi Lin
  • 987
  • 9
  • 15
16
votes
3 answers

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?
RasmusWL
  • 267
  • 2
  • 7
12
votes
2 answers

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 in a project directory and how can I achieve this?
Rainer
  • 897
  • 10
  • 16
11
votes
2 answers

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/using session and adding them like so: (add-to-list…
noctuid
  • 429
  • 3
  • 11
11
votes
4 answers

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 projects which contains buffers of the files related…
sudeepdino008
  • 213
  • 1
  • 6
9
votes
2 answers

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.
programking
  • 7,064
  • 9
  • 41
  • 62
8
votes
1 answer

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 and its comments, people suggest that recent…
skyork
  • 211
  • 2
  • 5
7
votes
1 answer

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) (org-babel-do-load-languages …
Alex
  • 161
  • 5
7
votes
2 answers

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 my .emacs (require 'session) (add-hook…
Vivi
  • 361
  • 2
  • 10
5
votes
2 answers

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 were fascinating. The vast majority of the playback…
Alaneuler
  • 277
  • 1
  • 8
4
votes
1 answer

Org mode python code block with session does not return a result

I had been successfully using python code blocks with the :session header argument when I noticed that upon export no result was given. I then simplified my example to the following two: #+begin_src python :python ~/anaconda3/bin/python3…
4
votes
1 answer

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 output, i.e., the result of expressions in the…
MassimoLauria
  • 200
  • 1
  • 8
1
2 3