From c6f172de084bbdc82d600bca83d8b108724030d8 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Sat, 10 Dec 2022 23:03:45 +0400 Subject: [PATCH] Trying to set custom theme faces to no avail --- .config/emacs/init.org | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/.config/emacs/init.org b/.config/emacs/init.org index d9e9261..96be568 100644 --- a/.config/emacs/init.org +++ b/.config/emacs/init.org @@ -168,7 +168,6 @@ Use Dashboard.el. First load `all-the-icons` for nicer rendering ;; (straight-use-package 'all-the-icons) (straight-use-package 'dashboard) (dashboard-setup-startup-hook) -;; (setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*"))) (setq dashboard-items '((recents . 8) (bookmarks . 8))) (setq dashboard-startup-banner 'logo) @@ -191,9 +190,28 @@ Use Dashboard.el. First load `all-the-icons` for nicer rendering *** Themes #+begin_src emacs-lisp -;; (load "/home/joe/.dotfiles/.emacs.bankruptcy/straight/repos/themes/themes/doom-flatwhite-theme.el") (straight-use-package 'doom-themes) (setq custom-safe-themes t) + +;; General Faces +(custom-set-faces + '(dashboard-items-face ((t (:inherit widget-button :weight normal))))) + +;; Theme Specific +(with-eval-after-load 'doom-themes + (load "/home/joe/.dotfiles/.config/emacs/straight/build/doom-themes/doom-palenight-theme.el") + (load "/home/joe/.dotfiles/.config/emacs/straight/build/doom-themes/doom-flatwhite-theme.el") + + (custom-theme-set-faces + 'doom-palenight + '(highlight ((t (:background "#3C435E" :foreground "#ffffff")))) + '(markdown-code-face ((t (:extend t :background "#232635"))))) + + (custom-theme-set-faces + 'doom-flatwhite + '(hl-line ((t (:extend t :background "#e4ddd2")))) + '(org-block ((t (:extend t :background "#f1ece4")))) + '(org-block-begin-line ((t (:extend t :background "#3C435E")))))) #+end_src We want to add whatever custom theme we selected to the custom variables since emacs will just @@ -1017,8 +1035,8 @@ startup. Reason we have to call this is so the vterm fucntion can call `vterm--i (setq lsp-keymap-prefix "C-c c") ;; (setq lsp-ui-peek-always-show t) -;; (setq lsp-ui-sideline-show-hover t) ;; (setq lsp-ui-doc-enable t) +;; TODO: Disable lsp sideline (setq lsp-headerline-breadcrumb-enable nil) (setq lsp-eldoc-enable-hover t) (setq max-mini-window-height 0.25) @@ -1065,6 +1083,10 @@ startup. Reason we have to call this is so the vterm fucntion can call `vterm--i (evil-global-set-key 'normal (kbd "el") #'flycheck-list-errors) (evil-global-set-key 'normal (kbd "ce") #'consult-lsp-diagnostics) #+end_src +*** Compilation +#+begin_src emacs-lisp +(setq compilation-auto-jump-to-first-error t) +#+end_src ** Languages *** Rust #+begin_src emacs-lisp