From f68b4904a875c6b809b7e9e51b12a720b1471953 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Fri, 17 Nov 2023 04:13:17 -0800 Subject: [PATCH 1/4] Add crux --- init.el | 1 + 1 file changed, 1 insertion(+) diff --git a/init.el b/init.el index a264470..998ef4e 100755 --- a/init.el +++ b/init.el @@ -112,6 +112,7 @@ :config (evil-collection-init '(magit ibuffer))) +(use-package crux) ;; Avy (jump to char) (use-package avy From e5fd4455d8a329593907b39afca0628757642ba0 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Fri, 17 Nov 2023 04:13:52 -0800 Subject: [PATCH 2/4] Add bind to make a hy3 ephemeral tab --- init.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 998ef4e..d6f8bfc 100755 --- a/init.el +++ b/init.el @@ -335,6 +335,8 @@ (setq gc-cons-threshold (* 1024 1024 100) read-process-output-max (* 1024 1024)) +;; Misc keybinds + ;; hy3 retardation (use-package frames-only-mode :config @@ -352,7 +354,12 @@ (hyprctl "hy3:makegroup" "h, ephemeral") (make-frame-command))) -(define-key evil-normal-state-map (kbd "C-w a") #'make-frame-command) +(define-key evil-normal-state-map (kbd "C-w a") + (lambda () (interactive) + (hyprctl "hy3:makegroup" "tab, ephemeral") + (make-frame-command))) + +(define-key evil-normal-state-map (kbd "C-w r") #'make-frame-command) (advice-add #'evil-window-left :override (lambda (&optional count file) (hyprctl "hy3:movefocus" "l"))) From 3b55af550bbec8a327a65d9b580770b2db10806c Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Fri, 17 Nov 2023 04:15:06 -0800 Subject: [PATCH 3/4] Fix closing brackets not undoing an indentation level in rust --- init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.el b/init.el index d6f8bfc..23e9979 100755 --- a/init.el +++ b/init.el @@ -332,6 +332,10 @@ (add-hook 'c++-ts-mode-hook #'lsp-deferred) (add-hook 'typescript-ts-mode-hook #'lsp-deferred) +;; Fix indent +(add-hook 'rust-ts-mode-hook + (lambda () (setq-local electric-indent-chars '(?\n ?\( ?\) ?{ ?} ?\[ ?\] ?\; ?,)))) + (setq gc-cons-threshold (* 1024 1024 100) read-process-output-max (* 1024 1024)) From fc0655dc043e672c0cfcb114341ccceebe5890e5 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Fri, 17 Nov 2023 04:15:53 -0800 Subject: [PATCH 4/4] Add QML syntax support --- init.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.el b/init.el index 23e9979..004f238 100755 --- a/init.el +++ b/init.el @@ -323,6 +323,13 @@ :mode "\\.nix\\'" :hook (nix-mode . disable-tabs)) +;; QML Support +(setq qml-ts-mode-indent-offset 2) +(use-package qml-ts-mode + :config + (add-hook 'qml-ts-mode-hook + (lambda () (setq-local electric-indent-chars '(?\n ?\( ?\) ?{ ?} ?\[ ?\] ?\; ?,))))) + (add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-ts-mode)) (add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-ts-mode)) (add-to-list 'auto-mode-alist '("\\.tsx\\'" . typescript-ts-mode))