From: Frederik Vanrenterghem Date: Wed, 9 Apr 2025 14:02:01 +0000 (+0800) Subject: Use separate custom variables file for Emacs config. X-Git-Url: http://git.vanrenterghem.biz/Dotty.git/commitdiff_plain/8b643ac9a4414da3987c80e5c0555d66ef9f5d28?ds=sidebyside Use separate custom variables file for Emacs config. --- diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 95e66e8..ee17ca8 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -7,6 +7,10 @@ (add-to-list 'load-path "~/.emacs.d/lisp/") (tool-bar-mode -1) +(scroll-bar-mode -1) + +(setopt custom-file "~/.emacs.d/custom.el") +(load custom-file) ;; Configure printing using CUPS network printer (setq lpr-switches @@ -241,41 +245,6 @@ minutes), and return a formatted Org timestamp with start and end times." ("\\.hs\\'" . haskell-mode) ("\\.el\\'" . emacs-lisp-mode))) - -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(browse-url-browser-function 'browse-url-firefox) - '(custom-safe-themes - '("8d146df8bd640320d5ca94d2913392bc6f763d5bc2bb47bed8e14975017eea91" - "9a977ddae55e0e91c09952e96d614ae0be69727ea78ca145beea1aae01ac78d2" - "0cf95236abcf59e05b1ea69b4edd53d293a5baec4fe4c3484543fee99bfd2204" - "80b00f3bf7cdbdca6c80aadfbbb03145f3d0aacf6bf2a559301e61109954e30a" - default)) - '(org-export-backends '(ascii html icalendar latex md odt)) - '(package-selected-packages - '(## ack all-the-icons-dired auctex calfw calfw-org company consult - consult-denote denote devdocs dired-preview - dired-quick-sort eat elfeed-protocol ellama elpy embark - embark-consult emms engrave-faces ess ess-R-data-view - ess-smart-underscore ess-view-data flx fontaine ftable - haskell-mode htmlize jinx julia-mode leuven-theme libmpdel - lsp-mode lua-mode magit marginalia mpdel-embark mu4e - mustache nerd-icons nerd-icons-dired nov orderless org - org-caldav org-contrib org-ql org-static-blog osm ox-rss - pass password-store powerthesaurus request straight - vertico)) - '(use-package-compute-statistics t)) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - ) - - ;; Send mail using SMTP via mail.vanrenterghem.io. (setq send-mail-function 'smtpmail-send-it) (setq smtpmail-smtp-server "mail.vanrenterghem.io"