Update packages, add zig

This commit is contained in:
Maciej 2022-04-03 12:28:32 +03:00
parent c556cdee38
commit 9546f1e17c
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
6 changed files with 65 additions and 24 deletions

32
lang/ziglang.el Normal file
View file

@ -0,0 +1,32 @@
;;; ziglang.el --- summary
;; Author: Maciej Szlosarczyk
;; Maintainer: Maciej Szlosarczyk
;; Version: 0.1-snapshot
;;; Commentary:
;; ziglang does a thing.
;;; Code:
(require '+custom-pkg-projectile "$HOME/.emacs.d/pkg/projectile.el")
(require '+custom-pkg-ctags "$HOME/.emacs.d/pkg/ctags.el")
(require '+custom-pkg-prog-mode "$HOME/.emacs.d/pkg/prog-mode.el")
(use-package zig-mode :straight t :defer t)
(defun activate-zig-mode ()
"Goodies for editing zig files."
;; Set column width to 100
(column-enforce-n 100)
;; Set indentation to 4 chars
(set-indent 4)
(lsp))
(add-hook 'zig-mode-hook 'activate-zig-mode)
(provide '+custom-lang-ziglang)
;;; ziglang.el ends here