mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Since we enable global-company-mode, explicitly enabling it in the setup for various major modes does nothing. But it does tie the code to company mode, making it harder to try alternatives like corfu.
41 lines
897 B
EmacsLisp
41 lines
897 B
EmacsLisp
;;; siren-dart.el --- jimeh's Emacs Siren: dart-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for dart-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-folding)
|
|
(require 'siren-lsp)
|
|
(require 'siren-projectile)
|
|
|
|
(use-package dart-mode
|
|
:mode "\\.dart\\'"
|
|
:interpreter "dart"
|
|
|
|
:hook
|
|
(dart-mode . siren-dart-mode-setup)
|
|
|
|
:custom
|
|
(dart-format-on-save t)
|
|
(dart-enable-analysis-server t)
|
|
|
|
:init
|
|
(with-eval-after-load "projectile"
|
|
(add-to-list 'projectile-project-root-files-bottom-up "pubspec.yaml")
|
|
(add-to-list 'projectile-project-root-files-bottom-up "BUILD"))
|
|
|
|
(defun siren-dart-mode-setup ()
|
|
(when (fboundp 'highlight-symbol-mode)
|
|
(highlight-symbol-mode -1))
|
|
(when (fboundp 'auto-highlight-symbol-mode)
|
|
(auto-highlight-symbol-mode -1))
|
|
|
|
(lsp-deferred)
|
|
(siren-folding)
|
|
(subword-mode +1)))
|
|
|
|
(provide 'siren-dart)
|
|
;;; siren-dart.el ends here
|