From a4b634cf9cc82cb1c0f85281471b5f9d120f814e Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 26 Dec 2021 13:02:43 -0600 Subject: Customize 'customize' --- init.el | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 45133df..835af08 100644 --- a/init.el +++ b/init.el @@ -136,6 +136,24 @@ calendar-latitude _location-latitude calendar-longitude _location-longitude)) +(setup cus-edit + ;; I don't use Custom to actually /make/ any customizations, but it's handy to + ;; (A) see what options are available and (B) persist some changes across + ;; restarts, for example, `safe-local-variables'. + (:also-load +cus-edit) + (:option custom-file (private/ "custom.el") + custom-magic-show nil + custom-magic-show-button t + custom-raised-buttons nil + custom-unlispify-tag-names nil + custom-variable-default-form 'lisp + +custom-variable-allowlist '(safe-local-variable-values)) + (when (file-exists-p custom-file) + (+custom-load-ignoring-most-customizations t)) + (advice-add 'custom-buffer-create-internal :after '+cus-edit-expand-widgets) + (:with-mode Custom-mode + (:local-set imenu-generic-expression +cus-edit-imenu-generic-expression))) + (setup dired (:also-load dired-x) (:also-straight dired-subtree -- cgit 1.4.1-21-gabe81