aboutsummaryrefslogtreecommitdiff
path: root/doom/config.el
diff options
context:
space:
mode:
authorYousef Jan <yousefjan24000@gmail.com>2026-06-24 16:49:33 +0300
committerYousef Jan <yousefjan24000@gmail.com>2026-06-24 16:49:33 +0300
commit2ba427332f2c0b8d1480434c688efaee1110ca51 (patch)
tree51712c789b893c27503dfc11e67b3d356c9783f1 /doom/config.el
parentde759743f0281c6e9dad043d66ca055e19e42491 (diff)
Doom tweaks
Diffstat (limited to 'doom/config.el')
-rw-r--r--doom/config.el41
1 files changed, 24 insertions, 17 deletions
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))))