Template for hidpi, disable tramp, finally fix indenting

This commit is contained in:
Andrew Scott 2023-06-21 23:29:53 -04:00
parent 7ea4db0b6b
commit 27fe8763da
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -142,9 +142,9 @@
(savehist-mode))
;; SSH
(use-package tramp
:config
(setq tramp-default-method "ssh"))
;; (use-package tramp
;; :config
;; (setq tramp-default-method "ssh"))
;; Completion with vertico/consult
(use-package vertico
@ -422,10 +422,16 @@
;:hook
;(org-mode . mixed-pitch-mode)
:config
{{- if eq .chezmoi.hostname "helix"}}
(set-face-attribute 'default nil :font "Hack" :height 180)
(set-face-attribute 'fixed-pitch nil :font "Hack" :height 180)
(set-face-attribute 'variable-pitch nil :font "DejaVu Sans" :height 200))
{{- else }}
(set-face-attribute 'default nil :font "Hack" :height 90)
(set-face-attribute 'fixed-pitch nil :font "Hack" :height 90)
(set-face-attribute 'variable-pitch nil :font "DejaVu Sans" :height 100))
;(add-hook 'mixed-pitch-mode-hook #'solaire-mode-reset)
{{- end }}
;(add-hook 'mixed-pitch-mode-hook #'solaire-mode-reset)
;; Icons
(use-package all-the-icons)
@ -528,10 +534,10 @@
;; (lsp-rust-analyzer-display-reborrow-hints nil)
:config
(setq lsp-prefer-flymake nil)) ; prefer lsp-ui (flycheck) to flymake
; (setq lsp-disabled-clients '(clangd))) ; prefer ccls to clangd
; :bind
; (:map lsp-mode-map
; ("TAB" . completion-at-point)))
; (setq lsp-disabled-clients '(clangd))) ; prefer ccls to clangd
; :bind
; (:map lsp-mode-map
; ("TAB" . completion-at-point)))
(use-package lsp-ui
:requires lsp-mode flycheck
@ -692,8 +698,8 @@
:bind ("C-c C-n" . jsdoc))
;; LaTeX
;(use-package lsp-latex)
;'(setq lsp-tex-server 'digestif)
;(use-package lsp-latex)
;'(setq lsp-tex-server 'digestif)
;; OpenGL / GLSL
(use-package glsl-mode)
@ -742,13 +748,13 @@
("C-c C-c e" . lsp-rust-analyzer-expand-macro)
("C-c C-c d" . dap-hydra)
("C-c C-c h" . lsp-ui-doc-glance)))
;; :config
;; uncomment for less flashiness
;; (setq lsp-eldoc-hook nil)
;; (setq lsp-enable-symbol-highlighting nil)
;; (setq lsp-signature-auto-activate nil)
;; :config
;; uncomment for less flashiness
;; (setq lsp-eldoc-hook nil)
;; (setq lsp-enable-symbol-highlighting nil)
;; (setq lsp-signature-auto-activate nil)
;; comment to disable rustfmt on save
;; comment to disable rustfmt on save
;; (add-hook 'rustic-mode-hook 'rk/rustic-mode-hook))
;; (defun rk/rustic-mode-hook ()
@ -771,6 +777,10 @@
(make-lsp-client
:new-connection (lsp-stdio-connection "/usr/bin/zls")
:major-modes '(zig-mode)
:server-id 'zls)))
:server-id 'zls))
:hook
(zig-mode . (lambda ()
(setq-local fill-column 100)
(setq-local tab-width 4))))
;;; End init.el