refactor: packagise emacs configuration and lib refactor
This commit is contained in:
parent
60b02b0338
commit
52c33aa328
9 changed files with 208 additions and 168 deletions
55
config/config-languages.el
Normal file
55
config/config-languages.el
Normal file
|
@ -0,0 +1,55 @@
|
|||
;; -*- lexical-binding: t -*-
|
||||
|
||||
|
||||
(defun config-init-languages ()
|
||||
(use-package nix-ts-mode
|
||||
:defer t
|
||||
:commands (nix-ts-mode)
|
||||
:mode "\\.nix\\'")
|
||||
|
||||
(use-package rust-mode
|
||||
:defer t
|
||||
:commands (rust-mode)
|
||||
:mode "\\.rs\\'")
|
||||
|
||||
(use-package qml-mode
|
||||
:defer t
|
||||
:commands (qml-mode)
|
||||
:mode "\\.qml\\'")
|
||||
|
||||
(use-package haskell-mode
|
||||
:defer t
|
||||
:commands (haskell-mode)
|
||||
:mode "\\.hs\\'")
|
||||
|
||||
(use-package python
|
||||
:defer t
|
||||
:commands (python-ts-mode python-mode)
|
||||
:custom
|
||||
(python-indent-offset 4))
|
||||
|
||||
(use-package cc-mode
|
||||
:defer t
|
||||
:commands (c-ts-mode
|
||||
c++-ts-mode
|
||||
c++-mode
|
||||
c-mode)
|
||||
:custom
|
||||
(c-basic-offset 4))
|
||||
|
||||
(use-package nushell-mode
|
||||
:defer t
|
||||
:commands (nushell-mode)
|
||||
:mode "\\.nu\\'")
|
||||
|
||||
(use-package tuareg
|
||||
:defer t
|
||||
:commands (tuareg-mode tuareg-opam-mode)
|
||||
:mode "\\.ml\\'")
|
||||
|
||||
(use-package nim-mode
|
||||
:defer t
|
||||
:commands (nim-mode)
|
||||
:mode "\\.nim\\'"))
|
||||
|
||||
(provide 'config-languages)
|
Loading…
Add table
Add a link
Reference in a new issue