Skip to content

Commit

Permalink
emacs: Add kotlin-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
TLATER committed Nov 9, 2023
1 parent 8ba527d commit 1997778
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion home-config/dotfiles/emacs.d/config/programming-languages.el
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@
:mode (rx (or ".yaml" ".yml" ".bst"
(and string-start "project.conf")) string-end))

;; ----------------------------------------------------------------------------------
;;; Kotlin
;; ----------------------------------------------------------------------------------

(use-package kotlin-mode
:hook (kotlin-mode . (lambda () (setq-local devdocs-current-docs '("kotlin~1.9"))))
:mode (rx ".kt" (optional "s") string-end))

;; ----------------------------------------------------------------------------------
;;; Markdown
;; ----------------------------------------------------------------------------------
Expand Down Expand Up @@ -302,7 +310,7 @@

(use-package eglot
:commands (eglot eglot-format eglot-managed-p eglot--major-mode)
:hook (((web-mode rust-mode python-mode sh-mode c-mode c++-mode nix-mode) .
:hook (((kotlin-mode web-mode rust-mode python-mode sh-mode c-mode c++-mode nix-mode) .
eglot-ensure)
(eglot-managed-mode . set-eldoc-compose))
:bind
Expand Down

0 comments on commit 1997778

Please sign in to comment.