nixos/home/emacs/modules/custom-ide-config.el
Evie Litherland-Smith 0ee059a354 Revert "Switch emacs package definitions to use use-package"
This reverts commit 32436bb052.

Broke lots of config, TODO revisit another time
2023-10-31 07:59:37 +00:00

25 lines
688 B
EmacsLisp

(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)
(setq apheleia-remote-algorithm 'local)
(keymap-set global-map "C-c c f" #'apheleia-format-buffer)
(apheleia-global-mode +1))
(when (require 'eglot nil :noerror)
(eglot-ensure))
(when (require 'direnv nil :noerror)
(setq direnv-always-show-summary nil)
(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)