diff options
| author | Preston Pan <ret2pop@gmail.com> | 2025-09-04 15:48:44 -0700 |
|---|---|---|
| committer | Preston Pan <ret2pop@gmail.com> | 2025-09-04 15:48:44 -0700 |
| commit | ba22dd89c67162aa26c7f85c389314ef1f079ace (patch) | |
| tree | 05d7d4368ab3c1d7fdfc833f2d80514b541fa89e /config/emacs.el | |
| parent | 4753c566cfc42f3af2bc6fac1717b88c4f32bcec (diff) | |
last commit before modifying image
Diffstat (limited to 'config/emacs.el')
| -rw-r--r-- | config/emacs.el | 43 |
1 files changed, 29 insertions, 14 deletions
diff --git a/config/emacs.el b/config/emacs.el index ddde018..76948b5 100644 --- a/config/emacs.el +++ b/config/emacs.el @@ -4,6 +4,11 @@ (use-package emacs :custom + ;; global defaults + (setq-default indent-tabs-mode nil) ;; no real tabs, only spaces + (setq-default tab-width 2) ;; just in case, make a "tab" show as 4 spaces + (setq-default standard-indent 2) ;; base indentation + ;; Startup errors (warning-minimum-level :emergency "Supress emacs warnings") (confirm-kill-processes nil "Don't ask to quit") @@ -254,22 +259,32 @@ :after (org) :hook (org-mode . (lambda () (org-superstar-mode 1)))) -(use-package eglot - :hook - (prog-mode . eglot-ensure) - (nix-mode . eglot-ensure) - :config - (add-to-list 'eglot-server-programs '(nix-mode . ("nil")))) +;; (use-package eglot + ;; :hook + ;; (prog-mode . eglot-ensure) + ;; (nix-mode . eglot-ensure) + ;; :config + ;; (add-to-list 'eglot-server-programs '(nix-mode . ("nil")))) + + (use-package lsp + :hook + (prog-mode . lsp)) -(use-package lsp - :hook - (prog-mode . lsp)) +(with-eval-after-load 'lsp-mode + (setq lsp-typescript-format-enable t + lsp-typescript-indent-size 4 + lsp-typescript-tab-size 4 + lsp-typescript-indent-style "spaces")) + +(use-package editorconfig + :config + (editorconfig-mode 1)) -(use-package flycheck - :config (global-flycheck-mode)) + (use-package flycheck + :config (global-flycheck-mode)) -(use-package platformio-mode - :hook (prog-mode . platformio-conditionally-enable)) + (use-package platformio-mode +:hook (prog-mode . platformio-conditionally-enable)) (use-package irony-mode :hook ( @@ -409,7 +424,7 @@ "m l" '(lyrics-fetcher-show-lyrics :wk "Music lyrics") "o p" '(treemacs :wk "Project Drawer") "o P" '(treemacs-projectile :wk "Import Projectile project to treemacs") - "f f" '(eglot-format :wk "Format code buffer") + ;; "f f" '(eglot-format :wk "Format code buffer") "i p c" '(prestonpan :wk "Connect to my IRC server") "i l c" '(liberachat :wk "Connect to libera chat server") "i e c" '(efnet :wk "Connect to efnet chat server") |
