diff --git a/elementaryx-dev.el b/elementaryx-dev.el index d3d2d856ab62c6182a7561e3a82433a782d215e7..dd1a48d11acfef710f99e938398b7f4c24b30bb5 100644 --- a/elementaryx-dev.el +++ b/elementaryx-dev.el @@ -9,27 +9,10 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; -;;; Built-in config for developers +;;; Tree-sitter ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(use-package emacs - :config - ;; Treesitter config - ;; Tell Emacs to prefer the treesitter mode - (setq major-mode-remap-alist - '( - ;; (yaml-mode . yaml-ts-mode) - (bash-mode . bash-ts-mode) - ;; (js2-mode . js-ts-mode) - ;; (typescript-mode . typescript-ts-mode) ;; No need for json-mode, we got with ts - ;; (json-mode . json-ts-mode) ;; No Need for json-mode, we go with ts - (css-mode . css-ts-mode) - (python-mode . python-ts-mode))) - :hook - ;; Auto parenthesis matching - ((prog-mode . electric-pair-mode))) - (use-package emacs :config @@ -40,6 +23,7 @@ (add-to-list 'major-mode-remap-alist '(c++-mode . c++-ts-mode)) (add-to-list 'major-mode-remap-alist '(c-or-c++-mode . c-or-c++-ts-mode)) + (add-to-list 'major-mode-remap-alist '(css-mode . css-ts-mode)) ;; (add-to-list 'major-mode-remap-alist '(html-mode . html-ts-mode)) (add-to-list 'major-mode-remap-alist '(java-mode . java-ts-mode)) (add-to-list 'major-mode-remap-alist '(javascript-mode . js-ts-mode)) @@ -62,13 +46,30 @@ (add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-ts-mode)) ;; (add-to-list 'auto-mode-alist '("\\.ml\\'" . ml-ts-mode)) ;; TODO: not sure how to set it up with tree-sitter-ocaml ;; (add-to-list 'auto-mode-alist '("\\.\\(e?ya?\\|ra\\)ml\\'" . yaml-ts-mode)) ;; https://issues.guix.gnu.org/66836 - ) + + :hook + ;; Auto parenthesis matching + ((prog-mode . electric-pair-mode))) + + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;; +;;; Compiler output viewer +;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ;; https://github.com/emacsmirror/rmsbolt (use-package rmsbolt :bind (:map toggle-elementaryx-map ("r" . rmsbolt-mode))) +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;; +;;; Envrc (aka direnv) +;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ;; We use https://github.com/purcell/envrc rather than ;; https://github.com/wbolster/emacs-direnv to set environment ;; variables buffer-locally.