~lobisquit/emacs.d

33c3fd6f94b69ce289928fdd71e517f9a1cc1dbc — Enrico Lovisotto 1 year, 7 months ago 26a550d
Added go lang basic modes
1 files changed, 11 insertions(+), 0 deletions(-)

M init.org
M init.org => init.org +11 -0
@@ 550,6 550,17 @@ Setup colored parenthesis for
    :hook ((lisp-mode . rainbow-delimiters-mode)))
#+end_src

** golang
Install ~golang~ packege (on Ubuntu) or similar to have the format
capability. Note that tabs are mandatory, and in general ~gofmt~
puts a ~.go~ file to the correct formatting style.

#+begin_src elisp
  (use-package go-mode
    :hook ((before-save-hook . gofmt-before-save))
    :custom ((tab-width 4)))
#+end_src

* Epilogue
Re-set garbage collector limit to a sensible value.