Emacs: theme changes and explicitly set auto-save-list-file-prefix

This commit is contained in:
Andrew Scott 2024-09-02 12:15:55 -04:00
parent 37261c156c
commit 86e15cf44f
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -139,6 +139,9 @@
(use-feature cus-edit (use-feature cus-edit
:init (setopt custom-file null-device)) :init (setopt custom-file null-device))
(use-feature custom
:config (setopt custom-safe-themes t))
;; Customize fill column indicator ;; Customize fill column indicator
(use-feature display-fill-column-indicator (use-feature display-fill-column-indicator
:hook ((conf-mode :hook ((conf-mode
@ -229,7 +232,8 @@
(unless (file-directory-p auto_save_directory) (unless (file-directory-p auto_save_directory)
(make-directory auto_save_directory)) (make-directory auto_save_directory))
(setopt backup-directory-alist `((".*" . ,auto_save_directory)) (setopt backup-directory-alist `((".*" . ,auto_save_directory))
auto-save-file-name-transforms `((".*" ,auto_save_directory t)))) auto-save-list-file-prefix (concat auto_save_directory "saves-"))
auto-save-file-name-transforms `((".*" ,auto_save_directory t)))
(setopt backup-by-copying t (setopt backup-by-copying t
confirm-kill-processes nil confirm-kill-processes nil
delete-old-versions t delete-old-versions t
@ -346,8 +350,7 @@
:config :config
(add-hook 'before-save-hook #'whitespace-cleanup) (add-hook 'before-save-hook #'whitespace-cleanup)
(setopt whitespace-line-column nil (setopt whitespace-line-column nil
whitespace-style '(face whitespace-style '(lines-char
lines-char
missing-newline-at-eof missing-newline-at-eof
space-after-tab space-after-tab
space-before-tab space-before-tab
@ -375,11 +378,12 @@
;; Catppuccin theme ;; Catppuccin theme
(use-package catppuccin-theme (use-package catppuccin-theme
:disabled
:config :config
(setopt custom-safe-themes t (setopt catppuccin-flavor 'macchiato)
catppuccin-flavor 'macchiato) ;; (catppuccin-reload)
(catppuccin-reload) ;; (load-theme 'catppuccin t)
(load-theme 'catppuccin t)) )
;; C/C++ formatting ;; C/C++ formatting
;; Ad hoc format file: clang-format -style=webkit -dump-config > .clang-format ;; Ad hoc format file: clang-format -style=webkit -dump-config > .clang-format
@ -473,6 +477,7 @@
;; In-buffer completion ;; In-buffer completion
(use-package company (use-package company
:disabled
:bind :bind
(:map company-active-map (:map company-active-map
("RET" . nil) ("RET" . nil)
@ -488,7 +493,7 @@
;; FIXME - I crash emacs ;; FIXME - I crash emacs
(use-package corfu (use-package corfu
:disabled ;; :disabled
:bind :bind
(:map corfu-map (:map corfu-map
("M-SPC" . corfu-insert-separator) ("M-SPC" . corfu-insert-separator)
@ -501,6 +506,30 @@
:defer 3 :defer 3
:ensure (corfu :files (:defaults "extensions/*"))) :ensure (corfu :files (:defaults "extensions/*")))
(use-package doom-themes
:disabled
:config
(setopt doom-themes-enable-bold t
doom-themes-enable-italic t))
(use-package nimbus-theme
:config (load-theme 'nimbus))
(use-package ef-themes
:disabled
:config
(setopt ef-themes-headings '((0 variable-pitch light 1.9)
(1 variable-pitch light 1.8)
(2 variable-pitch regular 1.7)
(3 variable-pitch regular 1.6)
(4 variable-pitch regular 1.5)
(5 variable-pitch 1.4) ; absence of weight means `bold'
(6 variable-pitch 1.3)
(7 variable-pitch 1.2)
(t variable-pitch 1.1))
ef-themes-mixed-fonts t
ef-themes-variable-pitch-ui t))
;; Use `emacs-lsp-booster' with `Eglot' ;; Use `emacs-lsp-booster' with `Eglot'
(use-package eglot-booster (use-package eglot-booster
:after eglot :after eglot
@ -542,7 +571,7 @@
'(("Org" '(("Org"
("Agenda" (org-agenda nil "a") "a") ("Agenda" (org-agenda nil "a") "a")
("Time blocking" org-timeblock "b") ("Time blocking" org-timeblock "b")
("List all TODOs" (org-agenda nil "t") "t") ("Super agenda" (org-agenda nil "u") "u")
("Match Tags" (org-agenda nil "m") "m")))) ("Match Tags" (org-agenda nil "m") "m"))))
" " " "
,(enlight-menu ,(enlight-menu
@ -590,7 +619,7 @@
("FIXME" error bold) ("FIXME" error bold)
("NOTE" highlight italic) ("NOTE" highlight italic)
("REVIEW" highlight italic) ("REVIEW" highlight italic)
("TODO" bookmark-face bold))) ("TODO" highlight bold)))
:ensure (hl-todo :depth nil) :ensure (hl-todo :depth nil)
:hook (prog-mode . hl-todo-mode)) :hook (prog-mode . hl-todo-mode))