summaryrefslogblamecommitdiff
path: root/emacs/custom/my-lang-nix.el
blob: 6e17ee3d7cd807420760682d3de863db9a909731 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                                                         

                   
 

                                                                                              



                            
;;; 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