More language support in emacs

This commit is contained in:
Charlotte Van Petegem 2021-04-15 02:36:34 +02:00
parent 6c52172718
commit 8253875008
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -89,6 +89,9 @@
;; Direnv integration in emacs.
(use-package direnv :config (direnv-mode))
;; Editorconfig
(use-package editorconfig :config (editorconfig-mode 1))
;; Vim keybindings
(use-package evil
:custom
@ -392,12 +395,20 @@
"ps" '(consult-ripgrep :search "incsearch")
"pS" '(projectile-ripgrep :which-key "search")
"p!" '(projectile-run-shell-command-in-root :which-key "command")
"p&" '(projectile-run-async-shell-command-in-root :which-key "task")
)
)
;; Python syntax support
(use-package python-mode :mode "\\.py\\'")
;; Ruby language support
(use-package ruby-mode
:ensure nil ;; Included with emacs
:custom
(ruby-insert-encoding-magic-comment nil "Don't insert encoding magic comment")
)
;; Ripgrep support (needed for `projectile-ripgrep')
(use-package ripgrep)
@ -413,6 +424,10 @@
:custom (selectrum-prescient-enable-filtering nil "`orderless' manages the filtering part.")
:config (selectrum-prescient-mode 1))
;; TypeScript language support
(use-package tide
:mode "\\.ts'")
;; HTML (and HTML template) support
(use-package web-mode
:mode "\\.html'"