Emacs: Prevent 'customize' from clutter init file

master
Pierre Neidhardt 2017-05-21 23:49:20 +02:00
parent df8cee1056
commit aca248c2f0
1 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,7 @@ To view where the bindings are set in your config files, lookup
`mickey-minor-mode-map' over it. Example:
(define-key mickey-minor-mode-map (kbd \"C-i\") 'some-function)"
t " my-keys" 'mickey-minor-mode-map)
t " myckey" 'mickey-minor-mode-map)
(add-hook 'minibuffer-setup-hook (lambda () (mickey-minor-mode 0)))
(defvar emacs-cache-folder "~/.cache/emacs/"
@ -205,6 +205,9 @@ To view where the bindings are set in your config files, lookup
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; End of config
;; Don't let `customize' clutter my config.
(setq custom-file "/dev/null")
;; We need to put it at the end to make sure it doesn't get overriden by other
;; minor modes.
(mickey-minor-mode 1)