nixos/home/emacs/modules/custom-ide-config.el
Evie Litherland-Smith 46adafaf28 Wrap theme setting in when check for doom-themes
Move a few more things into modules from init.el, misc formatting otherwise
2023-10-27 06:59:10 +01:00

22 lines
715 B
EmacsLisp

(setq direnv-always-show-summary nil
apheleia-remote-algorithm 'local)
(when (require 'aggressive-indent nil :noerror) (add-hook 'prog-mode-hook #'aggressive-indent-mode))
(when (require 'rainbow-delimiters nil :noerror) (add-hook 'prog-mode-hook #'rainbow-delimiters-mode))
(when (require 'treesit-aut nil :noerror) (global-treesit-auto-mode +1))
(when (require 'apheleia nil :noerror) (apheleia-global-mode +1))
(when (require 'eglot nil :noerror) (eglot-ensure))
(when (require 'direnv nil :noerror) (direnv-mode +1))
(when (require 'yasnippet nil :noerror)
(require 'yasnippet-snippets nil :noerror)
(yas-reload-all)
(add-hook 'prog-mode-hook #'yas-minor-mode))
(provide 'custom-ide-config)