Questions tagged [eval]

59 questions
0
votes
1 answer

Evaluating variable for mode-line face attribute

I have the following code that changes mode-line colours. When using the :box property I want to use a variable. But I get an error using :color fglamp because I need to evaluate the colour variable. How may I solve this ? (set-face-attribute…
Dilna
  • 1
  • 3
  • 11
0
votes
1 answer

Undo code evaluation

Can the evaluation of code snippets be undone in emacs? Or do I have to restart without having the code sitting in init.el to bring the system back to its previous state? I tried out this code with M-x eval-region. (define-minor-mode…
Sati
  • 775
  • 6
  • 23
0
votes
0 answers

How to re-evaluate cl-defstruct during same Emacs session

I am putting together a modification of a library that contains an existing cl-defstruct definition, and I am having problems redefining it after its initial evaluation. Q:  How can I replace the old definition with the new one? [It would be nice…
lawlist
  • 19,106
  • 5
  • 38
  • 120