From a82f697b93fef2bec7fac0a0c9659590c2c68628 Mon Sep 17 00:00:00 2001 From: rearman Date: Thu, 2 Mar 2023 15:32:49 -0500 Subject: [PATCH] customize faces, diff path for windows Issues with setting faces via init file, went the customize route for modeline, modeline-inactive, and matching-paren. Fixed path to diff.exe for windows, needed to escape a set of quotes inside the quotes denoting the path as a string. --- custom-set-variables.el | 4 +++- setq-defaults.el | 10 +++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/custom-set-variables.el b/custom-set-variables.el index 9aa18f9..439bb46 100644 --- a/custom-set-variables.el +++ b/custom-set-variables.el @@ -22,4 +22,6 @@ ;; 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. - ) + '(mode-line ((t (:foreground "black")))) + '(mode-line-inactive ((t (:foreground "darkgray")))) + '(show-paren-match ((t (:underline t))))) diff --git a/setq-defaults.el b/setq-defaults.el index 57fbf01..ca0ad50 100644 --- a/setq-defaults.el +++ b/setq-defaults.el @@ -39,8 +39,9 @@ (if (eq system-type 'windows-nt) (setq delete-by-moving-to-trash t - ediff-diff-program "c:/Program Files/Git/usr/bin/diff.exe" - ediff-diff3-program "c:/Program Files/Git/usr/bin/diff3.exe" + ediff-diff-program "\"c:/Program Files/Git/usr/bin/diff.exe\"" + ediff-diff3-program "\"c:/Program Files/Git/usr/bin/diff3.exe\"" + diff-command "\"c:/Program Files/Git/usr/bin/diff.exe\"" openwith-associations '(("\\.pdf\\'" "sumatrapdf" (file)) ("\\.xls\\'" "excel" (file)) ("\\.xlsx\\'" "excel" (file)) @@ -69,9 +70,4 @@ (global-hl-line-mode t) (global-prettify-symbols-mode t) (global-display-line-numbers-mode t) - -;; FACES -(set-face-attribute 'show-paren-match nil :background nil :underline t) -(set-face-attribute 'mode-line nil :background "#cae0a6" :foreground "black" :box nil) -(set-face-attribute 'mode-line-inactive nil :background "#cae0a6" :foreground "darkgray" :box nil) (add-to-list 'default-frame-alist '(background-color . "#cae0a6")) -- 2.39.5