From 2ba427332f2c0b8d1480434c688efaee1110ca51 Mon Sep 17 00:00:00 2001 From: Yousef Jan Date: Wed, 24 Jun 2026 16:49:33 +0300 Subject: Doom tweaks --- doom/config.el | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) (limited to 'doom') diff --git a/doom/config.el b/doom/config.el index 242c32b..02c1997 100644 --- a/doom/config.el +++ b/doom/config.el @@ -45,23 +45,22 @@ (defun my/setup-syntax-highlighting (&rest _) "Apply a 5-color scheme to font-lock faces." - (custom-set-faces! - `(font-lock-comment-face :foreground ,my/syntax-comment :slant italic) - `(font-lock-comment-delimiter-face :foreground ,my/syntax-comment :slant italic) - `(font-lock-doc-face :foreground ,my/syntax-comment :slant italic) - `(font-lock-string-face :foreground ,my/syntax-string) - `(font-lock-doc-markup-face :foreground ,my/syntax-string) - `(font-lock-keyword-face :foreground ,my/syntax-keyword :weight bold) - `(font-lock-builtin-face :foreground ,my/syntax-keyword) - `(font-lock-preprocessor-face :foreground ,my/syntax-keyword) - `(font-lock-negation-char-face :foreground ,my/syntax-keyword) - `(font-lock-type-face :foreground ,my/syntax-type) - `(font-lock-constant-face :foreground ,my/syntax-type) - `(font-lock-function-name-face :foreground ,my/syntax-function) - `(font-lock-variable-name-face :foreground "#FCFCFC") - `(font-lock-warning-face :foreground ,my/syntax-function :weight bold) - `(font-lock-regexp-grouping-backslash :foreground ,my/syntax-function) - `(font-lock-regexp-grouping-construct :foreground ,my/syntax-function))) + (set-face-attribute 'font-lock-comment-face nil :foreground my/syntax-comment :slant 'italic) + (set-face-attribute 'font-lock-comment-delimiter-face nil :foreground my/syntax-comment :slant 'italic) + (set-face-attribute 'font-lock-doc-face nil :foreground my/syntax-comment :slant 'italic) + (set-face-attribute 'font-lock-string-face nil :foreground my/syntax-string) + (set-face-attribute 'font-lock-doc-markup-face nil :foreground my/syntax-string) + (set-face-attribute 'font-lock-keyword-face nil :foreground my/syntax-keyword :weight 'bold) + (set-face-attribute 'font-lock-builtin-face nil :foreground my/syntax-keyword) + (set-face-attribute 'font-lock-preprocessor-face nil :foreground my/syntax-keyword) + (set-face-attribute 'font-lock-negation-char-face nil :foreground my/syntax-keyword) + (set-face-attribute 'font-lock-type-face nil :foreground my/syntax-type) + (set-face-attribute 'font-lock-constant-face nil :foreground my/syntax-type) + (set-face-attribute 'font-lock-function-name-face nil :foreground my/syntax-function) + (set-face-attribute 'font-lock-variable-name-face nil :foreground "#FCFCFC") + (set-face-attribute 'font-lock-warning-face nil :foreground my/syntax-function :weight 'bold) + (set-face-attribute 'font-lock-regexp-grouping-backslash nil :foreground my/syntax-function) + (set-face-attribute 'font-lock-regexp-grouping-construct nil :foreground my/syntax-function)) (my/setup-syntax-highlighting) (add-hook 'doom-load-theme-hook #'my/setup-syntax-highlighting 40) @@ -293,3 +292,11 @@ my/dashboard-widget-loaded-centered)) (setq org-startup-with-inline-images t) + +;; Move visual-line selection up/down with J/K; preserve original behavior in other visual modes +(map! :v "J" (cmd! (if (eq evil-visual-selection 'line) + (drag-stuff-down 1) + (evil-join (region-beginning) (region-end)))) + :v "K" (cmd! (if (eq evil-visual-selection 'line) + (drag-stuff-up 1) + (evil-lookup)))) -- cgit v1.2.3