Skip to content

Commit

Permalink
fix(emacs): Switch to built-in scss-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tlater-famedly committed Dec 16, 2024
1 parent 1fd3b5b commit a6ab55d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion home-config/dotfiles/emacs.d/config/editing.el
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
(leaf files
:ensure nil
:custom (require-final-newline . "visit-save")
:custom (major-mode-remap-alist . '((sh-mode . bash-ts-mode))))
:custom (major-mode-remap-alist . '((sh-mode . bash-ts-mode)
(css-mode . css-ts-mode))))

;; ----------------------------------------------------------------------------------
;;; Snippets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@
;; ----------------------------------------------------------------------------------

(leaf scss-mode
:ensure nil
:mode `(,(rx (or ".sass" ".scss") string-end))
:hook (scss-mode-hook . (lambda () (setq-local devdocs-current-docs '("css" "sass")))))

Expand Down
1 change: 1 addition & 0 deletions pkgs/applications/emacs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ let
(epkgs.treesit-grammars.with-grammars (
grammars: with grammars; [
tree-sitter-bash
tree-sitter-css
tree-sitter-typescript
tree-sitter-tsx
]
Expand Down

0 comments on commit a6ab55d

Please sign in to comment.