summary refs log tree commit diff
path: root/emacs/custom/my-lang-nix.el
blob: 6e17ee3d7cd807420760682d3de863db9a909731 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
;;; my-lang-nix.el --- configure emacs for nix -*- lexical-binding: t -*-
;; Author: Franck Cuny <franck@fcuny.net>

;;; Commentary:

;;; Code:

(require 'eglot)
(require 'nix-mode)

(add-hook 'nix-mode-hook 'eglot-ensure)
(add-hook 'nix-mode-hook #'(lambda() (add-hook 'before-save-hook 'eglot-format-buffer nil t)))

(provide 'my-lang-nix)

;;; my-lang-nix.el ends here