If I modify my .emacs
file I usually call eval-buffer
to apply all changes to existing buffers without restarting emacs. Now I have the following lines to invoke helm-mini
each time emacs starts:
(if (< (length command-line-args) 2)
(setq initial-buffer-choice (car (helm-mini)))
)
The problem is that if I call eval-buffer
it displays a helm mini buffer each time.
How can I make emacs exclude those lines when calling eval-buffer
or alternatively, how can I change the code lines above such that the problem doesn't occur anymore?
eval-region
instead and select the region to be evaluated. Or, comment out what you don't want to be evaluated when callingeval-buffer
. Or, simply put in conditions to prevent certain portions of code from being evaluated -- e.g.,(defvar foo nil)
-- and set the variable to eithert
ornil
--(if foo . . .)
.