Disable more customize* commands

This commit is contained in:
Henrik Lissner 2020-01-23 00:56:58 -05:00
parent 4e28e3b840
commit fd41b1b552
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -646,9 +646,16 @@ startup (or theme switch) time, so long as `doom--prefer-theme-elc' is non-nil."
;;; Fixes/hacks ;;; Fixes/hacks
;; Doom doesn't support `customize' and it never will. It's a clumsy interface ;; Doom doesn't support `customize' and it never will. It's a clumsy interface
;; for something that should be configured from only one place ($DOOMDIR), so we ;; that sets variables at a time where it can be easily and unpredictably
;; disable them. ;; overwritten. Configure things from your $DOOMDIR instead.
(put 'customize 'disabled "Doom doesn't support `customize', configure Emacs from $DOOMDIR/config.el instead") (dolist (sym '(customize-option customize-browse customize-group customize-face
customize-rogue customize-saved customize-apropos
customize-changed customize-unsaved customize-variable
customize-set-value customize-customized customize-set-variable
customize-apropos-faces customize-save-variable
customize-apropos-groups customize-apropos-options
customize-changed-options customize-save-customized))
(put sym 'disabled "Doom doesn't support `customize', configure Emacs from $DOOMDIR/config.el instead"))
(put 'customize-themes 'disabled "Set `doom-theme' or use `load-theme' in $DOOMDIR/config.el instead") (put 'customize-themes 'disabled "Set `doom-theme' or use `load-theme' in $DOOMDIR/config.el instead")
;; Doesn't exist in terminal Emacs, so we define it to prevent void-function ;; Doesn't exist in terminal Emacs, so we define it to prevent void-function