ergoemacs / ergoemacs-mode

ergoemacs-mode
ergoemacs.github.io/
GNU General Public License v3.0
293 stars 35 forks source link

A way to don't pollute custom set vars #389

Closed kolya-ay closed 8 years ago

kolya-ay commented 8 years ago

Every time I install ergomacs-mode it writes it's setup to custom-variables. E.g.

(custom-set-variables
 '(ergoemacs-ctl-c-or-ctl-x-delay 0.2)
 '(ergoemacs-handle-ctl-c-or-ctl-x (quote both))
 ...
 '(initial-scratch-message ...)

I want to remove this config and add my own customizations ((setq ergoemacs-ctl-c-or-ctl-x-delay 0.2), etc). However if I delete set-custom-variables lines, the package adds it back on next restart.

Is there a way to disable this?

mattfidler commented 8 years ago

I believe three is, but I can't remember the option offhand.. I won't have access to a computer until 4 Jan.

xahlee commented 8 years ago

meanwhile, you can simply add your own code after that auto-generated code. e.g. add this (setq ergoemacs-ctl-c-or-ctl-x-delay 0.2) after that block. This will override the previous value.

mattfidler commented 8 years ago

That's true.

mattfidler commented 8 years ago

You can also customize the variable and it will save.

kolya-ay commented 8 years ago

Yes, I know, but I prefer to keep my custom.el clean as it is under source control. However if it is not possible, well, i accept it.

mattfidler commented 8 years ago

It's possible. I will make sure of it

Valdaer commented 8 years ago

Long time ago I had that problem too, I don't remember where I found solution but you must add

(setq ergoemacs-theme-options (quote ((save-options-on-exit off))))

line to your ergoemacs configuration/init.el

It was even more annoying to me when I was configuring ergoemacs-mode from elpa for first time because: https://github.com/ergoemacs/ergoemacs-mode/issues/398

kolya-ay commented 8 years ago

@Valdaer thank you! That is exactly what I looking for!

mattfidler commented 8 years ago

Ergoemacs-mode no longer savea customize setting upon closing emacs.