Fix indenting

This commit is contained in:
Wojciech Kozlowski 2023-06-26 08:19:21 +02:00
parent b1161fb12d
commit bbadac0cf1

View File

@ -56,15 +56,19 @@
(avy-lead-face-2-fg (internal-get-lisp-face-attribute 'avy-lead-face-2 (avy-lead-face-2-fg (internal-get-lisp-face-attribute 'avy-lead-face-2
:background))) :background)))
(custom-theme-set-faces! 'doom-one (custom-theme-set-faces! 'doom-one
`(avy-lead-face :foreground ,avy-lead-face-fg `(avy-lead-face
:background nil :foreground ,avy-lead-face-fg
:weight bold) :background nil
`(avy-lead-face-0 :foreground ,avy-lead-face-0-fg :weight bold)
:inherit avy-lead-face) `(avy-lead-face-0
`(avy-lead-face-1 :foreground ,avy-lead-face-1-fg :foreground ,avy-lead-face-0-fg
:inherit avy-lead-face) :inherit avy-lead-face)
`(avy-lead-face-2 :foreground ,avy-lead-face-2-fg `(avy-lead-face-1
:inherit avy-lead-face)))) :foreground ,avy-lead-face-1-fg
:inherit avy-lead-face)
`(avy-lead-face-2
:foreground ,avy-lead-face-2-fg
:inherit avy-lead-face))))
(after! symbol-overlay (after! symbol-overlay
(custom-theme-set-faces! nil (custom-theme-set-faces! nil
'(symbol-overlay-default-face :inherit hl-line))) '(symbol-overlay-default-face :inherit hl-line)))
@ -285,11 +289,11 @@
;; The only thing I actually missed from helm. ;; The only thing I actually missed from helm.
(map! (:when (featurep! :completion vertico) (map! (:when (featurep! :completion vertico)
:map vertico-map :map vertico-map
"C-l" (defun +x-vertico/directory-delete-one-word () "C-l" (defun +x-vertico/directory-delete-one-word ()
"Delete one directory or word before point." "Delete one directory or word before point."
(interactive) (interactive)
(vertico-directory-delete-word 1)))) (vertico-directory-delete-word 1))))
;; Extra VTerm configuration. ;; Extra VTerm configuration.
(after! vterm (after! vterm
@ -298,18 +302,18 @@
(map! :leader (map! :leader
(:prefix-map ("o" . "open") (:prefix-map ("o" . "open")
(:when (featurep! :term vterm) (:when (featurep! :term vterm)
:desc "Project VTerm" "p" #'+vterm/project/other-window :desc "Project VTerm" "p" #'+vterm/project/other-window
:desc "Project VTerm (same window)" "P" #'+vterm/project/here :desc "Project VTerm (same window)" "P" #'+vterm/project/here
:desc "VTerm" "t" #'+vterm/other-window :desc "VTerm" "t" #'+vterm/other-window
:desc "VTerm (same window)" "T" #'+vterm/here))) :desc "VTerm (same window)" "T" #'+vterm/here)))
;; Tab key should indent and absolutely nothing more. ;; Tab key should indent and absolutely nothing more.
(after! yasnippet (after! yasnippet
(map! (:map yas-minor-mode-map (map! (:map yas-minor-mode-map
"<tab>" nil "<tab>" nil
"TAB" nil "TAB" nil
"<C-return>" #'yas-expand))) "<C-return>" #'yas-expand)))
;; ----------------------------------------------------------------------------- ;; -----------------------------------------------------------------------------
;; Configuration for additional packages on top of doom and its modules. ;; Configuration for additional packages on top of doom and its modules.
@ -330,11 +334,11 @@
(read-directory-name "Base directory: " nil default-directory t))) (read-directory-name "Base directory: " nil default-directory t)))
:config :config
(map! (:map deadgrep-mode-map (map! (:map deadgrep-mode-map
"C-o" (defun +x-deadgrep/open-result-other-window () "C-o" (defun +x-deadgrep/open-result-other-window ()
"Open the result in other window without changing to it." "Open the result in other window without changing to it."
(interactive) (interactive)
(save-selected-window (deadgrep-visit-result-other-window))) (save-selected-window (deadgrep-visit-result-other-window)))
"RET" #'deadgrep-visit-result-other-window))) "RET" #'deadgrep-visit-result-other-window)))
;; Duplicate things. ;; Duplicate things.
(use-package! duplicate-thing (use-package! duplicate-thing
@ -442,7 +446,7 @@
(error "No file on this line")))) (error "No file on this line"))))
(map! (:map dired-mode-map (map! (:map dired-mode-map
"W" #'+x/browse-url-of-dired-file))) "W" #'+x/browse-url-of-dired-file)))
;; ----------------------------------------------------------------------------- ;; -----------------------------------------------------------------------------
;; Global keybindings. ;; Global keybindings.
@ -455,7 +459,7 @@
"C->" #'+x/scroll-up-one "C->" #'+x/scroll-up-one
"M-Q" #'+x/unfill-paragraph "M-Q" #'+x/unfill-paragraph
(:map org-mode-map (:map org-mode-map
"C-c C-;" #'+x/org-insert-link-with-title) "C-c C-;" #'+x/org-insert-link-with-title)
;; Faster navigation with avy. ;; Faster navigation with avy.
"M-g M-c" #'avy-goto-char "M-g M-c" #'avy-goto-char
"M-g M-v" #'avy-goto-char-2 "M-g M-v" #'avy-goto-char-2
@ -465,7 +469,7 @@
"M-g M-t" #'avy-goto-char-timer "M-g M-t" #'avy-goto-char-timer
"M-g M-j" #'avy-resume "M-g M-j" #'avy-resume
(:map isearch-mode-map (:map isearch-mode-map
"C-'" #'avy-isearch) "C-'" #'avy-isearch)
;; Create binding before dired is loaded. ;; Create binding before dired is loaded.
"C-x C-j" #'dired-jump "C-x C-j" #'dired-jump
;; More convenient window switching. ;; More convenient window switching.