Disable LSP/Eglot/ESlint for QML files
This commit is contained in:
@@ -12,6 +12,18 @@
|
||||
(setq shift-select-mode t)
|
||||
(transient-mark-mode t)
|
||||
|
||||
;; Standard word navigation with C-left/right
|
||||
(global-set-key (kbd "C-<left>") 'left-word)
|
||||
(global-set-key (kbd "C-<right>") 'right-word)
|
||||
|
||||
;; Word selection with C-Shift-left/right
|
||||
(global-set-key (kbd "C-S-<left>") 'left-word)
|
||||
(global-set-key (kbd "C-S-<right>") 'right-word)
|
||||
|
||||
;; Make sure shift-selection works with these commands
|
||||
(put 'left-word 'CUA 'move)
|
||||
(put 'right-word 'CUA 'move)
|
||||
|
||||
;;; Text manipulation
|
||||
(global-set-key (kbd "C-<return>") 'cua-set-rectangle-mark)
|
||||
|
||||
@@ -41,6 +53,11 @@
|
||||
:config
|
||||
(setq olivetti-body-width 100))
|
||||
|
||||
;;; Rainbow delimiters - colorize matching brackets
|
||||
(use-package rainbow-delimiters
|
||||
:ensure t
|
||||
:hook (prog-mode . rainbow-delimiters-mode))
|
||||
|
||||
;;; God-mode configuration (disabled by default)
|
||||
;; Uncomment the following lines to enable god-mode
|
||||
;; (let ((god-config (expand-file-name "god-mode-config.el" user-emacs-directory)))
|
||||
|
||||
@@ -55,10 +55,11 @@
|
||||
(define-key smartparens-mode-map (kbd "C-M-w") 'sp-copy-sexp)
|
||||
(define-key smartparens-mode-map (kbd "M-<delete>") 'sp-unwrap-sexp)
|
||||
(define-key smartparens-mode-map (kbd "M-<backspace>") 'sp-backward-unwrap-sexp)
|
||||
(define-key smartparens-mode-map (kbd "C-<right>") 'sp-forward-slurp-sexp)
|
||||
(define-key smartparens-mode-map (kbd "C-<left>") 'sp-forward-barf-sexp)
|
||||
(define-key smartparens-mode-map (kbd "C-M-<right>") 'sp-backward-barf-sexp)
|
||||
(define-key smartparens-mode-map (kbd "C-M-<left>") 'sp-backward-slurp-sexp)
|
||||
;; Changed from C-<left/right> to avoid conflict with word navigation
|
||||
(define-key smartparens-mode-map (kbd "C-c <right>") 'sp-forward-slurp-sexp)
|
||||
(define-key smartparens-mode-map (kbd "C-c <left>") 'sp-forward-barf-sexp)
|
||||
(define-key smartparens-mode-map (kbd "C-c M-<right>") 'sp-backward-barf-sexp)
|
||||
(define-key smartparens-mode-map (kbd "C-c M-<left>") 'sp-backward-slurp-sexp)
|
||||
(define-key smartparens-mode-map (kbd "M-D") 'sp-splice-sexp)
|
||||
(define-key smartparens-mode-map (kbd "C-]") 'sp-select-next-thing-exchange)
|
||||
(define-key smartparens-mode-map (kbd "C-<") 'sp-select-previous-thing)
|
||||
@@ -156,7 +157,8 @@
|
||||
(global-set-key (kbd "C-x |") 'qol-toggle-window-split)
|
||||
|
||||
;;; Window movement with windmove
|
||||
(windmove-default-keybindings) ; Use Shift+arrows to move between windows
|
||||
;; Use Meta (Alt) + arrows instead of Shift+arrows to avoid conflicts with shift-selection
|
||||
(windmove-default-keybindings 'meta) ; Use Meta+arrows to move between windows
|
||||
(setq windmove-wrap-around t)
|
||||
|
||||
;;; Better buffer names for duplicates
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
(add-to-list 'auto-mode-alist '("\\.go\\'" . go-ts-mode))
|
||||
|
||||
;; Enhanced font-lock for tree-sitter modes
|
||||
(setq treesit-font-lock-level 4) ; Maximum highlighting
|
||||
(setq treesit-font-lock-level 3) ; Balanced highlighting (was 4, reduced for performance)
|
||||
|
||||
;; Tree-sitter debugging helpers
|
||||
(defun treesit-inspect-node-at-point ()
|
||||
|
||||
@@ -37,6 +37,18 @@
|
||||
(setq window-divider-default-right-width 1)
|
||||
(window-divider-mode 1)
|
||||
|
||||
;;; X11 optimizations for no-toolkit builds
|
||||
(when (and (display-graphic-p)
|
||||
(eq window-system 'x)
|
||||
;; Check if using no-toolkit build (OLDXMENU present)
|
||||
(string-match-p "OLDXMENU" system-configuration-features))
|
||||
;; Disable double buffering to fix redraw issues
|
||||
(add-to-list 'default-frame-alist '(inhibit-double-buffering . t))
|
||||
;; Force synchronous X operations
|
||||
(setq x-gtk-use-system-tooltips nil)
|
||||
;; More responsive display updates
|
||||
(setq redisplay-dont-pause t))
|
||||
|
||||
;;; Font Settings (preserved from custom-set-faces)
|
||||
;; Apply font settings to all frames (current and future)
|
||||
(set-face-attribute 'default nil
|
||||
|
||||
Reference in New Issue
Block a user