Skip to content

Commit

Permalink
emacs: goimports, go-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
niclas committed Feb 24, 2023
1 parent 6af714b commit b4ddf1a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .emacs.d/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
(package-refresh-contents)

(setq my-packages
'(go-mode
'(fill-column-indicator
go-mode
gruvbox-theme
org
org-bullets
paper-theme))
Expand All @@ -16,7 +18,10 @@
(unless (package-installed-p pkg)
(package-install pkg)))

(setq gofmt-command "/home/niclas/bin/goimports")

(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
(add-hook 'before-save-hook 'gofmt-before-save)

(setq custom-file null-device)

Expand All @@ -30,6 +35,10 @@
(setq fill-column 80)
(setq make-backup-files nil)

(require 'fill-column-indicator)
(setq fci-rule-column 80)
(setq fci-rule-color "red")

(setq c-default-style "linux")

(defun indent-buffer()
Expand Down

0 comments on commit b4ddf1a

Please sign in to comment.