Disable M-x customize & M-x customize-themes

This commit is contained in:
Henrik Lissner 2019-11-21 14:19:14 -05:00
parent 186a923643
commit d873e75e63
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -616,6 +616,12 @@ 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
;; for something that should be configured from only one place ($DOOMDIR), so we
;; disable them.
(put 'customize '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")
;; doesn't exist in terminal Emacs; we define it to prevent errors ;; doesn't exist in terminal Emacs; we define it to prevent errors
(unless (fboundp 'define-fringe-bitmap) (unless (fboundp 'define-fringe-bitmap)
(fset 'define-fringe-bitmap #'ignore)) (fset 'define-fringe-bitmap #'ignore))