emacs: load config files automatically
This commit is contained in:
parent
2518da2216
commit
df0d861b69
6 changed files with 18 additions and 13 deletions
|
@ -31,17 +31,15 @@
|
|||
;; `require' or `use-package'.
|
||||
;; - `map!' for binding new keys
|
||||
|
||||
(load! "config/lsp.el")
|
||||
(load! "config/org.el")
|
||||
;; Load all *.el files in config/
|
||||
(let* ((config-dir (concat doom-user-dir "config"))
|
||||
(config-files (directory-files-recursively config-dir "\.el")))
|
||||
(dolist (file config-files)
|
||||
(load! file doom-user-dir)))
|
||||
|
||||
;; Elfeed
|
||||
(add-hook! 'elfeed-search-mode-hook #'elfeed-update)
|
||||
|
||||
;; Tectonic for LaTeX
|
||||
(after! (latex tex)
|
||||
(add-to-list 'TeX-command-list
|
||||
'("Tectonic" "tectonic %s.tex" TeX-run-command nil t)))
|
||||
|
||||
;; Dired config
|
||||
(add-hook 'dired-after-readin-hook 'dired-git-info-auto-enable)
|
||||
|
||||
|
|
6
doom/config/lang/latex.el
Normal file
6
doom/config/lang/latex.el
Normal file
|
@ -0,0 +1,6 @@
|
|||
;;; $DOOMDIR/config/lang/latex.el -*- lexical-binding: t; -*-
|
||||
|
||||
;; Add Tectonic as a compiler for LaTeX
|
||||
(after! (latex tex)
|
||||
(add-to-list 'TeX-command-list
|
||||
'("Tectonic" "tectonic %s.tex" TeX-run-command nil t)))
|
|
@ -1,9 +1,5 @@
|
|||
;;; $DOOMDIR/config/lsp.el -*- lexical-binding: tl -*-
|
||||
;;; $DOOMDIR/config/lang/svelte.el -*- lexical-binding: t; -*-
|
||||
|
||||
;; web-mode
|
||||
(setq-hook! 'web-mode-hook +format-with-lsp nil)
|
||||
|
||||
;; svlete-mode
|
||||
(define-derived-mode svelte-mode web-mode "Svelte")
|
||||
(add-to-list 'auto-mode-alist '("\\.svelte\\'" . svelte-mode))
|
||||
(add-hook 'svelte-mode-hook 'eglot-ensure)
|
5
doom/config/lang/web.el
Normal file
5
doom/config/lang/web.el
Normal file
|
@ -0,0 +1,5 @@
|
|||
;;; $DOOMDIR/config/lang/web.el -*- lexical-binding: t; -*-
|
||||
|
||||
(setq-hook! 'web-mode-hook +format-with-lsp nil)
|
||||
|
||||
(add-to-list 'auto-mode-alist '("\\.astro\\'" . web-mode))
|
|
@ -137,7 +137,7 @@
|
|||
;;gdscript ; the language you waited for
|
||||
(go +lsp) ; the hipster dialect
|
||||
;;(graphql +lsp) ; Give queries a REST
|
||||
;;(haskell +lsp) ; a language that's lazier than I am
|
||||
(haskell +lsp) ; a language that's lazier than I am
|
||||
;;hy ; readability of scheme w/ speed of python
|
||||
;;idris ; a language you can depend on
|
||||
json ; At least it ain't XML
|
||||
|
|
Loading…
Reference in a new issue