emacs/lang/golang.el

29 lines
586 B
EmacsLisp

;;; golang.el --- summary -*- lexical-binding: t; -*-
;; Author: Maciej Szlosarczyk
;; Maintainer: Maciej Szlosarczyk
;; Version: 0.1-snapshot
;;; Commentary:
;; golang mode stuff
;;; Code:
(require '+custom-pkg-prog-mode "$HOME/.emacs.d/pkg/prog-mode.el")
(require '+custom-pkg-hydra "$HOME/.emacs.d/pkg/hydra.el")
(use-package go-mode
:requires (lsp-mode lsp-ui)
:defer t
:straight t)
(defun activate-golang-mode ()
(set-indent 8)
(column-enforce-n 100)
(lsp))
(add-hook 'go-mode-hook 'activate-golang-mode)
(provide '+custom-lang-golang)
;;; golang.el ends here