Skip to content

Commit ff967ce

Browse files
committed
feat(emacs): add support for just-mode
- Added `just-mode` to the Emacs package list in Nix configuration - Configured `just-mode` in Emacs init file with autoload and file associations for Justfile syntax - Included `rustup` in the advanced Nix package list
1 parent 5f10875 commit ff967ce

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

home-manager/packages/advanced.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{ pkgs, nodePkgs }:
22
with pkgs;
33
[
4+
rustup
5+
46
# lint
57
similarity
68

home-manager/packages/emacs/epkgs/packages/language/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ with epkgs;
4949
js2-mode
5050
json-mode
5151
jsonnet-mode
52+
just-mode
5253
kotlin-mode
5354
lua-mode
5455
markdown-mode

home-manager/programs/emacs/elisp/init.org

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,13 @@
711711
(define-key jsonnet-mode-map (kbd "C-c C-f") #'jsonnet-jump)
712712
(define-key jsonnet-mode-map (kbd "C-c C-r") #'jsonnet-reformat-buffer))
713713
#+end_src
714+
** just-mode
715+
#+begin_src emacs-lisp :tangle yes
716+
(autoload-if-found '(just-mode) "just-mode" nil t)
717+
718+
(add-to-list 'auto-mode-alist '("/[Jj]ustfile\\'" . just-mode))
719+
(add-to-list 'auto-mode-alist '("\\.[Jj]ust\\(file\\)?\\'" . just-mode))
720+
#+end_src
714721
** kotlin-mode
715722
#+begin_src emacs-lisp :tangle yes
716723
(autoload-if-found '(kotlin-mode) "kotlin-mode" nil t)

0 commit comments

Comments
 (0)