From fc29f83ea7141d15f074639a5af12c07948052cd Mon Sep 17 00:00:00 2001 From: qvalentin Date: Tue, 12 Apr 2022 10:54:16 +0200 Subject: [PATCH] (doom) workaround for centaur tabs --- .doom.d/config.el | 19 +++++++++++++++++++ .doom.d/custom.el | 4 +++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.doom.d/config.el b/.doom.d/config.el index 0b6c863..cd83fcc 100644 --- a/.doom.d/config.el +++ b/.doom.d/config.el @@ -92,3 +92,22 @@ (setq! org-ditaa-jar-path "/usr/share/java/ditaa/ditaa-0.11.jar")) +;; Spelling stuff + +(setq ispell-program-name "hunspell" ; Use hunspell to correct mistakes + ispell-dictionary "de_DE") ; Default dictionary to use +(add-to-list 'ispell-skip-region-alist '("#\\+BEGIN_SRC" . "#\\+END_SRC")) + + +(defun save-all () + (interactive) + (save-some-buffers t)) + +(add-hook 'deselect-frame-hook 'save-all) + +(defadvice! fix-centaur-tabs-project-name () + :override #'centaur-tabs-project-name + (let ((project-name (car (last (project-current))))) + (if project-name + (format "Project: %s" (expand-file-name project-name)) + centaur-tabs-common-group-name))) diff --git a/.doom.d/custom.el b/.doom.d/custom.el index 571c425..055f8c9 100644 --- a/.doom.d/custom.el +++ b/.doom.d/custom.el @@ -15,7 +15,7 @@ '(jdee-db-spec-breakpoint-face-colors (cons "#0d1011" "#928374")) '(objed-cursor-color "#fb4934") '(package-selected-packages - '(theme-magic xresources-theme exec-path-from-shell lsp-haskell lsp-ui)) + '(markdown-preview-eww markdown-preview-mode theme-magic xresources-theme exec-path-from-shell lsp-haskell lsp-ui)) '(pdf-view-midnight-colors (cons "#ebdbb2" "#282828")) '(rustic-ansi-faces ["#282828" "#fb4934" "#b8bb26" "#fabd2f" "#83a598" "#cc241d" "#8ec07c" "#ebdbb2"]) @@ -90,3 +90,5 @@ '(markdown-header-face-4 :foreground "#1bae94" :height 1.15 :weight bold :inherit markdown-header-face) '(markdown-header-face-5 :foreground "#1bae94" :height 1.15 :weight bold :inherit markdown-header-face) '(markdown-header-face-6 :foreground "#1bae94" :height 1.15 :weight extra-bold :inherit markdown-header-face)) + +